mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-11-03 20:17:59 +00:00 
			
		
		
		
	* transit cache is an Interface implemented by wrapped versions of syncmap and golang-lru * transit cache is an Interface implemented by wrapped versions of syncmap and golang-lru * changed some import paths to point to sdk * Apply suggestions from code review Co-Authored-By: Lexman42 <Lexman42@users.noreply.github.com> * updates docs with information on transit/cache-config endpoint * updates vendored files * fixes policy tests to actually use a cache where expected and renames the struct and storage path used for cache configurations to be more generic * updates document links * fixed a typo in a documentation link * changes cache_size to just size for the cache-config endpoint
		
			
				
	
	
		
			9 lines
		
	
	
		
			163 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
		
			163 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package keysutil
 | 
						|
 | 
						|
type Cache interface {
 | 
						|
	Delete(key interface{})
 | 
						|
	Load(key interface{}) (value interface{}, ok bool)
 | 
						|
	Store(key, value interface{})
 | 
						|
	Size() int
 | 
						|
}
 |