Versions in this module Expand all Collapse all v0 v0.2.1 Jul 2, 2022 Changes in this version + type Cache struct + TimeTiLive time.Duration + URL string + func NewCache(ttl time.Duration, url string, afsService afs.Service) *Cache + func (c *Cache) Combine(url, key string) string + func (c *Cache) Delete(ctx context.Context, key string) error + func (c *Cache) GenerateKey(aKey string) (string, error) + func (c *Cache) Get(ctx context.Context, key string) ([]byte, bool, error) + func (c *Cache) Upload(ctx context.Context, key string, data []byte) error v0.1.0 Oct 20, 2020 Changes in this version + type Service interface + Delete func(ctx context.Context, key string) error + Get func(ctx context.Context, key string) ([]byte, error) + Put func(ctx context.Context, key string, data []byte, ttl time.Duration) error + type ServiceRegistry interface + Get func(name string) (Service, error) + Keys func() []string + Register func(name string, service Service) + Remove func(name string) + func New() ServiceRegistry + func Registry() ServiceRegistry