Versions in this module Expand all Collapse all v1 v1.0.1 Jul 17, 2019 v1.0.0 Jul 10, 2019 Changes in this version + func Register() + type Cache struct + C chan int + GCInterval time.Duration + Size int64 + func (c *Cache) Close() error + func (c *Cache) Del(key string) error + func (c *Cache) DelCounter(key string) error + func (c *Cache) Expire(key string, ttl time.Duration) error + func (c *Cache) ExpireCounter(key string, ttl time.Duration) error + func (c *Cache) Flush() error + func (c *Cache) GetBytesValue(key string) ([]byte, error) + func (c *Cache) GetCounter(key string) (int64, error) + func (c *Cache) IncrCounter(key string, increment int64, ttl time.Duration) (int64, error) + func (c *Cache) MGetBytesValue(keys ...string) (map[string][]byte, error) + func (c *Cache) MSetBytesValue(data map[string][]byte, ttl time.Duration) error + func (c *Cache) SetBytesValue(key string, bs []byte, ttl time.Duration) error + func (c *Cache) SetCounter(key string, v int64, ttl time.Duration) error + func (c *Cache) SetGCErrHandler(f func(err error)) + func (c *Cache) UpdateBytesValue(key string, bs []byte, ttl time.Duration) error + type Config struct + CleanupIntervalInSecond int64 + Size int64 + func (config *Config) Create() (cache.Driver, error)