Documentation
¶
Index ¶
- func SequenceGet() string
- type CachePool
- func (cp CachePool) Add(cacheInfo *cacheInfo.CacheInfo) *msgentity.MsgEntity
- func (cp CachePool) AddData(sId string, data interface{}) *msgentity.MsgEntity
- func (cp CachePool) Clear() *msgentity.MsgEntity
- func (cp CachePool) Contains(sId string) bool
- func (cp CachePool) Find(sId string) *cacheInfo.CacheInfo
- func (cp CachePool) FindData(sId string) interface{}
- func (cp CachePool) Free(sId string) *msgentity.MsgEntity
- func (cp CachePool) FreeByData(data interface{}) *msgentity.MsgEntity
- func (cp CachePool) FreeById(sId string) *msgentity.MsgEntity
- func (cp CachePool) FreeByTime(iMinute int) *msgentity.MsgEntity
- type CacheTxtUtil
- func (ctu CacheTxtUtil) CreateCacheFile(object interface{}, sCacheFile string) *msgentity.MsgEntity
- func (ctu CacheTxtUtil) CreateCacheFileByList(list []interface{}, sCacheFile string) *msgentity.MsgEntity
- func (ctu CacheTxtUtil) DelCacheFile(sCacheFile string) *msgentity.MsgEntity
- func (ctu CacheTxtUtil) ReadCacheFile(sCacheFile ...string) []interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CachePool ¶
type CachePool struct{}
自定义缓存池
func (CachePool) Add ¶
* * 添加缓存 * @param cacheInfo * @return
func (CachePool) AddData ¶
* * 添加缓存 * @param sId * @param oData * @return
func (CachePool) Contains ¶
* * 判断是否包含缓存,包含返回true * @param sId * @return
func (CachePool) Find ¶
* * 查找缓存信息 * @param sId * @return
func (CachePool) FindData ¶
* * 查找缓存对象 * @param sId * @return
func (CachePool) Free ¶
* * 释放缓存 * @param sId * @return
func (CachePool) FreeByData ¶
* * 释放缓存 * @param sId * @return
func (CachePool) FreeById ¶
* * 释放缓存 * @param sId * @return
type CacheTxtUtil ¶
type CacheTxtUtil struct{}
func (CacheTxtUtil) CreateCacheFile ¶
func (ctu CacheTxtUtil) CreateCacheFile(object interface{}, sCacheFile string) *msgentity.MsgEntity
*
- 创建缓存文件
- @param object 待存储数据对象
- @param sCacheFile 缓存文件路径及文件名
- @return
func (CacheTxtUtil) CreateCacheFileByList ¶
func (ctu CacheTxtUtil) CreateCacheFileByList(list []interface{}, sCacheFile string) *msgentity.MsgEntity
*
- 创建缓存文件
- @param list 数据集合
- @param sCacheFile 缓存文件路径及文件名
- @return
func (CacheTxtUtil) DelCacheFile ¶
func (ctu CacheTxtUtil) DelCacheFile(sCacheFile string) *msgentity.MsgEntity
*
- 删除缓存文件
- @param sCacheFile
func (CacheTxtUtil) ReadCacheFile ¶
func (ctu CacheTxtUtil) ReadCacheFile(sCacheFile ...string) []interface{}
*
- 读取缓存文件
- @param sCacheFile 缓存文件路径及文件名
- @return
Click to show internal directories.
Click to hide internal directories.