|
fastdo
0.5.12
|
模板-内存式缓存 更多...
#include <eientpl.hpp>


类 | |
| struct | CacheItem |
Public 类型 | |
| typedef std::map< winux::String, CacheItem > | CacheItemsMap |
| typedef std::map< winux::String, CacheItemsMap > | CacheStruct |
Public 成员函数 | |
| TemplateMemoryCache (int lifeTime, CacheItemsMap *cacheItems) | |
| virtual bool | hasCache (winux::String const &cacheName) const |
| 检测是否已经有还有效的缓存,检查其生命期 更多... | |
| virtual bool | getCacheName (winux::String *cacheName, winux::String const &tplFile, winux::String const &cacheId="") const |
| 根据模板文件名和缓存标记id计算缓存名 更多... | |
| virtual bool | readCache (winux::String const &cacheName, winux::String *str) |
| 取得缓存内容字符串 更多... | |
| virtual winux::String | get (winux::String const &cacheName) |
| 取得缓存内容字符串 更多... | |
| virtual bool | writeCache (winux::String const &cacheName, winux::String const &str) |
| 写入缓存内容字符串 更多... | |
| virtual void | setLifeTime (int lifeTime=0) |
| 设置缓存有效时间(即缓存机制是否开启,0为关闭) 更多... | |
| virtual int | getLifeTime () const |
| 获取缓存有效时间 更多... | |
Public 成员函数 继承自 eientpl::TemplateCache | |
| virtual | ~TemplateCache () |
模板-内存式缓存
在文件 eientpl.hpp 第 178 行定义.
| typedef std::map< winux::String, CacheItem > eientpl::TemplateMemoryCache::CacheItemsMap |
在文件 eientpl.hpp 第 188 行定义.
| typedef std::map< winux::String, CacheItemsMap > eientpl::TemplateMemoryCache::CacheStruct |
在文件 eientpl.hpp 第 190 行定义.
| eientpl::TemplateMemoryCache::TemplateMemoryCache | ( | int | lifeTime, |
| CacheItemsMap * | cacheItems | ||
| ) |
|
virtual |
取得缓存内容字符串
|
virtual |
根据模板文件名和缓存标记id计算缓存名
|
virtual |
获取缓存有效时间
|
virtual |
检测是否已经有还有效的缓存,检查其生命期
|
virtual |
取得缓存内容字符串
|
virtual |
设置缓存有效时间(即缓存机制是否开启,0为关闭)
|
virtual |
写入缓存内容字符串