TiCaching
Commonjs module for caching data in Apps made with Titanium Mobile
Install / Use
/learn @gbaldera/TiCachingREADME
TiCaching
Version: 1.0
Platforms: tested on iOS and Android
TiCaching is a Commonjs module for caching data objects in apps made with Appcelerator's Titanium Mobile, useful for cache data returned from REST APIs. It is based on my Caching library for Codeigniter.
Usage
Just copy the "ticaching.js" anywhere in your project's Resources directory and references it like this:
var caching = require('ticaching');
After that, use the caching functions:
//cached some data
var data = {'name': 'Gustavo', 'age': 24, 'country': 'Dominican Republic'}
caching.save('my_key', data, 60) // cache data for 1 minute
caching.save('my_key', data) // or cache data for 30 seconds (default)
//get cached data
var data = caching.get('my_key');
// delete chached data
caching.del('my_key');
// delete all chached data
caching.clear();
// delete all expired data
caching.clear(true);
// check if especific key exists
caching.exists('my_key');
Related Skills
node-connect
349.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.5kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
