Documentation ¶
Index ¶
- Constants
- type Cache
- func (c *Cache) Delete(primary string, secondary string) bool
- func (c *Cache) DeleteAll(primary string) bool
- func (c *Cache) Get(primary, secondary string) garnish.CachedResponse
- func (c *Cache) GetSize() int
- func (c *Cache) Load(path string) error
- func (c *Cache) Save(path string, count int, cutoff time.Duration) error
- func (c *Cache) Set(primary string, secondary string, response garnish.CachedResponse)
- func (c *Cache) SetSize(s int)
- func (c *Cache) Stop()
- type Deserializer
- type Entry
- type List
- type Serializer
Constants ¶
View Source
const ( BUCKETS = 16 BUCKET_MASK = BUCKETS - 1 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Deserializer ¶
type Deserializer struct {
// contains filtered or unexported fields
}
func (*Deserializer) CloneBytes ¶
func (d *Deserializer) CloneBytes() []byte
func (*Deserializer) ReadByte ¶
func (d *Deserializer) ReadByte() byte
func (*Deserializer) ReadBytes ¶
func (d *Deserializer) ReadBytes() []byte
func (*Deserializer) ReadInt ¶
func (d *Deserializer) ReadInt() int
func (*Deserializer) ReadN ¶
func (d *Deserializer) ReadN(n int) []byte
func (*Deserializer) ReadString ¶
func (d *Deserializer) ReadString() string
type List ¶
type List struct {
// contains filtered or unexported fields
}
func (*List) PushToFront ¶
type Serializer ¶
func (*Serializer) Write ¶
func (s *Serializer) Write(b []byte)
func (*Serializer) WriteByte ¶
func (s *Serializer) WriteByte(b byte)
func (*Serializer) WriteInt ¶
func (s *Serializer) WriteInt(value int)
func (*Serializer) WriteString ¶
func (s *Serializer) WriteString(str string)
Click to show internal directories.
Click to hide internal directories.