Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache interface { Set(key string, value string) error Get(key string) (string, error) Delete(key string) error SetExpiration(expiration time.Duration) Cache }
func NewMemoryCache ¶
func NewMemoryCache() Cache
type MemoryCache ¶
type MemoryCache struct {
// contains filtered or unexported fields
}
func (*MemoryCache) Delete ¶
func (c *MemoryCache) Delete(key string) error
func (*MemoryCache) SetExpiration ¶ added in v0.1.8
func (c *MemoryCache) SetExpiration(expiration time.Duration) Cache
type MemoryCacheOptions ¶ added in v0.1.8
Click to show internal directories.
Click to hide internal directories.