fastdo
0.6.8
|
模板-文件式缓存 更多...
#include <eientpl.hpp>
Public 成员函数 | |
TemplateFileCache (time_t lifeTime, winux::String const &cacheDir, winux::String const &cacheExt=".cah") | |
构造函数1 更多... | |
virtual bool | hasCache (winux::String const &cacheName) const override |
检测是否已经有还有效的缓存,检查其生命期 更多... | |
virtual bool | getCacheName (winux::String *cacheName, winux::String const &tplFile, winux::String const &cacheId="") const override |
根据模板文件名和缓存标记id计算缓存名 更多... | |
virtual bool | readCache (winux::String const &cacheName, winux::String *str) override |
取得缓存内容字符串 更多... | |
virtual winux::String | get (winux::String const &cacheName) const override |
取得缓存内容字符串 更多... | |
virtual bool | writeCache (winux::String const &cacheName, winux::String const &str) override |
写入缓存内容字符串 更多... | |
virtual void | setLifeTime (time_t lifeTime=0) override |
设置缓存有效时间(即缓存机制是否开启,0为关闭) 更多... | |
virtual time_t | getLifeTime () const override |
获取缓存有效时间 更多... | |
void | setCacheDirPath (winux::String const &dirPath) |
winux::String const & | getCacheDirPath () const |
void | setCacheExt (winux::String const &extName) |
winux::String const & | getCacheExt () const |
Public 成员函数 继承自 eientpl::TemplateCache | |
virtual | ~TemplateCache () |
模板-文件式缓存
在文件 eientpl.hpp 第 149 行定义.
eientpl::TemplateFileCache::TemplateFileCache | ( | time_t | lifeTime, |
winux::String const & | cacheDir, | ||
winux::String const & | cacheExt = ".cah" |
||
) |
构造函数1
lifeTime | 缓存生命期 |
cacheDir | 缓存文件目录 |
cacheExt | 缓存文件扩展名 |
|
overridevirtual |
取得缓存内容字符串
|
inline |
在文件 eientpl.hpp 第 169 行定义.
|
inline |
在文件 eientpl.hpp 第 172 行定义.
|
overridevirtual |
根据模板文件名和缓存标记id计算缓存名
|
overridevirtual |
获取缓存有效时间
|
overridevirtual |
检测是否已经有还有效的缓存,检查其生命期
|
overridevirtual |
取得缓存内容字符串
void eientpl::TemplateFileCache::setCacheDirPath | ( | winux::String const & | dirPath | ) |
void eientpl::TemplateFileCache::setCacheExt | ( | winux::String const & | extName | ) |
|
overridevirtual |
设置缓存有效时间(即缓存机制是否开启,0为关闭)
|
overridevirtual |
写入缓存内容字符串