cache eviction using sweeper

add-license-1 v0.0.3
Basit Ali 2022-04-05 04:11:54 +05:00
parent 8142b23bcb
commit 9242ee35fe
2 changed files with 2 additions and 1 deletions

View File

@ -4,4 +4,5 @@ type Cache interface {
Get(key string) (interface{}, error) Get(key string) (interface{}, error)
Set(key string, data interface{}) error Set(key string, data interface{}) error
Remove(key string) error Remove(key string) error
Flush()
} }

View File

@ -3,5 +3,5 @@ package gocache
import "errors" import "errors"
var ( var (
ErrKeyNotFound = errors.New("Key not found") ErrKeyNotFound = errors.New("key not found")
) )