Versions in this module Expand all Collapse all v0 v0.0.2 Oct 7, 2023 v0.0.1 Jul 9, 2023 Changes in this version + func New(opt *Option) (fscache.Cache, error) + func NewSCache(opt *Option) (fscache.SCache, error) + type Option struct + Capacity int + func (o *Option) Check() error + func (o *Option) GetCapacity() int + type SCache struct + func (L *SCache) Delete(ctx context.Context, key any) fscache.DeleteResult + func (L *SCache) Get(ctx context.Context, key any) fscache.GetResult + func (L *SCache) Has(ctx context.Context, key any) fscache.HasResult + func (L *SCache) Reset(ctx context.Context) error + func (L *SCache) Set(ctx context.Context, key any, val any, ttl time.Duration) fscache.SetResult