memory.go (319B)
1 package cache 2 3 // Memory defines the interface for store of a symbol mapped content store. 4 type Memory interface { 5 Add(key string, val string, sizeLimit uint16) error 6 Update(key string, val string) error 7 ReservedSize(key string) (uint16, error) 8 Get(key string) (string, error) 9 Push() error 10 Pop() error 11 Reset() 12 }