2023-04-09 10:44:32 +02:00
|
|
|
package cache
|
|
|
|
|
|
|
|
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()
|
|
|
|
}
|