vise/cache/memory.go

13 lines
319 B
Go
Raw Permalink Normal View History

package cache
2023-04-12 19:04:36 +02:00
// Memory defines the interface for store of a symbol mapped content store.
type Memory interface {
Add(key string, val string, sizeLimit uint16) error
Update(key string, val string) error
ReservedSize(key string) (uint16, error)
Get(key string) (string, error)
Push() error
Pop() error
Reset()
}