Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache interface { Get(key string) ([]byte, error) Set(key string, content []byte) Lock() Unlock() Reset() }
Cache mechanism for caching strings
type MemCache ¶
type MemCache struct {
// contains filtered or unexported fields
}
MemCache implements a cache mechanism in memory bay using a map
func (*MemCache) Lock ¶
func (c *MemCache) Lock()
Lock allow some external resources that uses cache if required, this is not mandatory
Click to show internal directories.
Click to hide internal directories.