8 lines
130 B
Go
8 lines
130 B
Go
|
package lfu
|
||
|
|
||
|
type Store[K comparable, V any] interface {
|
||
|
Delete(key K) error
|
||
|
Set(key K, value V) error
|
||
|
Get(key K) (V, error)
|
||
|
}
|