Documentation
¶
Index ¶
- Constants
- type Initer
- type Loader
- type Manager
- type SCache
- func (o *SCache) Delete(key interface{}, lock bool) error
- func (o *SCache) Exist(key string) (val interface{}, exist bool)
- func (o *SCache) Get(load bool, key interface{}) (val interface{}, err error)
- func (o *SCache) GetAll() (retm map[string]interface{}, err error)
- func (o *SCache) GetEx(load bool, factor int, timeout time.Duration, lock bool, key interface{}) (val interface{}, err error)
- func (o *SCache) GetI(key int) (val interface{}, err error)
- func (o *SCache) GetSub(keys ...interface{}) *SCache
- func (o *SCache) GetSubEx(lock bool, index int, keys []interface{}) *SCache
- func (o *SCache) GetSubVal(load bool, keys ...interface{}) (val interface{}, err error)
- func (o *SCache) GetSubValEx(load bool, factor int, timeout time.Duration, lock bool, keys []interface{}) (val interface{}, err error)
- func (o *SCache) Init(lock bool) (interface{}, error)
- func (o *SCache) Keys(lock bool) ([]interface{}, error)
- func (o *SCache) List(load bool, keys ...string) (val []interface{}, err error)
- func (o *SCache) ListEx(load bool, factor int, timeout time.Duration, keys []string) (vals []interface{}, err error)
- func (o *SCache) ListKV(load bool, keys []string) (kv map[string]interface{}, err error)
- func (o *SCache) ListKVEx(load bool, factor int, timeout time.Duration, keys []string) (kv map[string]interface{}, err error)
- func (o *SCache) ListSubVal(load bool, path []interface{}, keys []string) (val []interface{}, err error)
- func (o *SCache) ListSubValEx(load bool, factor int, timeout time.Duration, lock bool, path []interface{}, ...) (val []interface{}, err error)
- func (o *SCache) Load(key interface{}, factor int, timeout time.Duration, lock bool) (val interface{}, err error)
- func (o *SCache) Set(val interface{}, key interface{}) error
- func (o *SCache) SetEx(val interface{}, key interface{}, lock bool) error
- func (o *SCache) SetI(val interface{}, key int, lock bool)
- func (o *SCache) SetSubVal(lock bool, val interface{}, keys ...interface{})
- func (o *SCache) SetSubVals(lock bool, vals []interface{}, keys []interface{}, pathes ...interface{})
- func (o *SCache) Sets(lock bool, vals []interface{}, keys []interface{}) error
- func (o *SCache) Values() ([]interface{}, error)
- type Updater
Constants ¶
View Source
const FLAG_UPDATE_ASPECT_AFTER = 0x2000
View Source
const FLAG_UPDATE_ASPECT_BEFORE = 0x1000
View Source
const FLAG_UPDATE_DELETE = 0x2
View Source
const FLAG_UPDATE_SET = 0x1
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func GetManager ¶
func GetManager() *Manager
type SCache ¶
type SCache struct {
Name string
Db string
Dao string
Group string
Twin *SCache
ArrayLimitInit int
Loader Loader
Initer Initer
Updater Updater
UseParentUpdater bool
Timeout time.Duration
// contains filtered or unexported fields
}
func (*SCache) GetSubValEx ¶
func (*SCache) ListSubVal ¶
func (*SCache) ListSubValEx ¶
func (o *SCache) ListSubValEx(load bool, factor int, timeout time.Duration, lock bool, path []interface{}, keys []string) (val []interface{}, err error)
keys_and_ids split by len == 0 string
func (*SCache) SetSubVals ¶
Click to show internal directories.
Click to hide internal directories.