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