Versions in this module Expand all Collapse all v0 v0.0.8 Mar 9, 2022 v0.0.7 Mar 8, 2022 Changes in this version + type Bytes []byte + func (b Bytes) Size() int + type Cache interface + Del func(ctx context.Context, key string) + Get func(ctx context.Context, key string) (Item, bool) + Len func() int + Set func(ctx context.Context, key string, i Item) + Size func() int + type Expire struct + ItemTTL time.Duration + func (c *Expire) Del(ctx context.Context, key string) + func (c *Expire) Get(ctx context.Context, key string) (Item, bool) + func (c *Expire) Len() int + func (c *Expire) Set(ctx context.Context, key string, i Item) + func (c *Expire) Size() int + type Float float64 + func (f Float) Size() int + type Int int + func (i Int) Size() int + type Item interface + Size func() int + type LRU struct + ItemTTL time.Duration + MaxSize int + OnEvict func(key string, i Item) + func (c *LRU) Del(ctx context.Context, key string) + func (c *LRU) Get(ctx context.Context, key string) (Item, bool) + func (c *LRU) Len() int + func (c *LRU) Set(ctx context.Context, key string, i Item) + func (c *LRU) Size() int + type String string + func (s String) Size() int