caches

package
v0.0.0-...-f3ad2b4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2015 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

type Item struct {
	StrItem
	Value interface{} `db:"required;max:-1;marshal"`
}

func (*Item) FromString

func (i *Item) FromString(x string) apperror.Error

func (*Item) GetValue

func (i *Item) GetValue() interface{}

func (*Item) SetValue

func (i *Item) SetValue(x interface{})

func (*Item) ToString

func (i *Item) ToString() (string, apperror.Error)

type MapItem

type MapItem struct {
	StrItem
	Value map[string]interface{} `db:"required;max:-1;marshal"`
}

func (*MapItem) FromString

func (i *MapItem) FromString(x string) apperror.Error

func (*MapItem) GetValue

func (i *MapItem) GetValue() interface{}

func (*MapItem) SetValue

func (i *MapItem) SetValue(x interface{})

func (*MapItem) ToString

func (i *MapItem) ToString() (string, apperror.Error)

type StrItem

type StrItem struct {
	Key       string    `db:"primary-key;max:10000"`
	Value     string    `db:"required;max:-1"`
	ExpiresAt time.Time `db:"ignore-zero"`
	Tags      []string  `db:"ignore-zero;marshal"`
}

func (*StrItem) Collection

func (i *StrItem) Collection() string

func (*StrItem) FromString

func (i *StrItem) FromString(x string) apperror.Error

func (*StrItem) GetExpiresAt

func (i *StrItem) GetExpiresAt() time.Time

func (*StrItem) GetId

func (i *StrItem) GetId() interface{}

func (*StrItem) GetKey

func (i *StrItem) GetKey() string

func (*StrItem) GetStrId

func (i *StrItem) GetStrId() string

func (*StrItem) GetTags

func (i *StrItem) GetTags() []string

func (*StrItem) GetValue

func (i *StrItem) GetValue() interface{}

func (*StrItem) IsExpired

func (i *StrItem) IsExpired() bool

func (*StrItem) SetExpiresAt

func (i *StrItem) SetExpiresAt(x time.Time)

func (*StrItem) SetId

func (i *StrItem) SetId(key interface{}) error

func (*StrItem) SetKey

func (i *StrItem) SetKey(x string)

func (*StrItem) SetStrId

func (i *StrItem) SetStrId(key string) error

func (*StrItem) SetTags

func (i *StrItem) SetTags(x []string)

func (*StrItem) SetValue

func (i *StrItem) SetValue(x interface{})

func (*StrItem) ToString

func (i *StrItem) ToString() (string, apperror.Error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL