Documentation ¶
Index ¶
- Constants
- type CacheTestValue
- func (c *CacheTestValue) Close()
- func (c *CacheTestValue) Delete(key []byte) error
- func (c *CacheTestValue) Flush() error
- func (c *CacheTestValue) Get(key []byte, value *TestValue) error
- func (c *CacheTestValue) Len() int
- func (c *CacheTestValue) Set(key []byte, value *TestValue, expireSeconds int) error
- type TestItem
- type TestValue
Constants ¶
View Source
const ( //NotFoundErrorTestValue not found error NotFoundErrorTestValue = cacheErrorTestValue("key not found") //NilValueErrorTestValue nil pointer given NilValueErrorTestValue = cacheErrorTestValue("value pointer shouldnt be nil") //CloseErrorTestValue cache is closed CloseErrorTestValue = cacheErrorTestValue("cache has been closed") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheTestValue ¶
type CacheTestValue struct {
// contains filtered or unexported fields
}
CacheTestValue typed cache
func NewNiceCacheTestValue ¶
func NewNiceCacheTestValue() *CacheTestValue
NewNiceCacheTestValue typed cache constructor
func (*CacheTestValue) Delete ¶
func (c *CacheTestValue) Delete(key []byte) error
Delete value by key
type TestItem ¶
type TestItem struct { ID string N uint32 Stat uint32 Published bool Deprecated *bool System uint32 Subsystem uint32 ParentID string Name string Name2 string Description string Description2 string CreatedBy uint32 UpdatedBy *uint32 List1 []uint32 List2 []uint32 }
TestItem some test type to test cache in different package
type TestValue ¶
type TestValue struct { ID string N uint32 Stat uint32 Published bool Deprecated *bool System uint32 Subsystem uint32 ParentID string Name string Name2 string Description string Description2 string CreatedBy uint32 UpdatedBy *uint32 List1 []uint32 List2 []uint32 Items []TestItem }
TestValue some test type
Click to show internal directories.
Click to hide internal directories.