Documentation ¶
Index ¶
- Constants
- type CacheTestItem
- func (c *CacheTestItem) Close()
- func (c *CacheTestItem) Delete(key []byte) error
- func (c *CacheTestItem) Flush() error
- func (c *CacheTestItem) Get(key []byte, value *cachetype.TestItem) error
- func (c *CacheTestItem) Len() int
- func (c *CacheTestItem) Set(key []byte, value *cachetype.TestItem, expireSeconds int) error
Constants ¶
View Source
const ( //NotFoundErrorTestItem not found error NotFoundErrorTestItem = cacheErrorTestItem("key not found") //NilValueErrorTestItem nil pointer given NilValueErrorTestItem = cacheErrorTestItem("value pointer shouldnt be nil") //CloseErrorTestItem cache is closed CloseErrorTestItem = cacheErrorTestItem("cache has been closed") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheTestItem ¶
type CacheTestItem struct {
// contains filtered or unexported fields
}
CacheTestItem typed cache
func NewNiceCacheTestItem ¶
func NewNiceCacheTestItem() *CacheTestItem
NewNiceCacheTestItem typed cache constructor
Click to show internal directories.
Click to hide internal directories.