All Projects â†’ gbaldera â†’ TiCaching

gbaldera / TiCaching

Licence: other
Commonjs module for caching data in Apps made with Titanium Mobile

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to TiCaching

Bonsai
Understand the tree of dependencies inside your webpack bundles, and trim away the excess.
Stars: ✭ 732 (+3227.27%)
Mutual labels:  commonjs
Parcel
The zero configuration build tool for the web. 📦🚀
Stars: ✭ 39,670 (+180218.18%)
Mutual labels:  commonjs
Requirejs Demo
《RequreJS学习笔记》
Stars: ✭ 164 (+645.45%)
Mutual labels:  commonjs
Units Converter
A simple utility library to measure and convert between units
Stars: ✭ 31 (+40.91%)
Mutual labels:  commonjs
Common Shakeify
browserify tree shaking plugin using `common-shake`
Stars: ✭ 101 (+359.09%)
Mutual labels:  commonjs
Node Blockly
Blockly for Node.js and Browser via CommonJS module
Stars: ✭ 117 (+431.82%)
Mutual labels:  commonjs
Esbuild
An extremely fast JavaScript and CSS bundler and minifier
Stars: ✭ 29,374 (+133418.18%)
Mutual labels:  commonjs
Pax
The fastest JavaScript bundler in the galaxy.
Stars: ✭ 2,626 (+11836.36%)
Mutual labels:  commonjs
Babel Plugin Global Require
A simple plugin that allows you to require globally
Stars: ✭ 102 (+363.64%)
Mutual labels:  commonjs
Common Shake
CommonJS Tree Shaker API
Stars: ✭ 145 (+559.09%)
Mutual labels:  commonjs
Neuron.js
A Full Feature CommonJS Module Manager, Dependency Graph Handler and Loader for Browsers
Stars: ✭ 66 (+200%)
Mutual labels:  commonjs
Steal
Gets JavaScript
Stars: ✭ 1,353 (+6050%)
Mutual labels:  commonjs
Tarp.require
A lightweight & asynchronous JavaScript loader for CommonJS and NodeJS modules.
Stars: ✭ 117 (+431.82%)
Mutual labels:  commonjs
Webpack Common Shake
CommonJS Tree Shaker plugin for WebPack
Stars: ✭ 875 (+3877.27%)
Mutual labels:  commonjs
Browserify
browser-side require() the node.js way
Stars: ✭ 13,929 (+63213.64%)
Mutual labels:  commonjs
Browserify Rails
Browserify + Rails = a great way to modularize your legacy JavaScript
Stars: ✭ 701 (+3086.36%)
Mutual labels:  commonjs
Cjstoesm
A tool that can transform CommonJS to ESM
Stars: ✭ 109 (+395.45%)
Mutual labels:  commonjs
Webpack
A bundler for javascript and friends. Packs many modules into a few bundled assets. Code Splitting allows for loading parts of the application on demand. Through "loaders", modules can be CommonJs, AMD, ES6 modules, CSS, Images, JSON, Coffeescript, LESS, ... and your custom stuff.
Stars: ✭ 60,034 (+272781.82%)
Mutual labels:  commonjs
Minipack
📦 A simplified example of a modern module bundler written in JavaScript
Stars: ✭ 2,625 (+11831.82%)
Mutual labels:  commonjs
Bootstrap.native
If you are looking for Bootstrap without jQuery, this is it.
Stars: ✭ 1,693 (+7595.45%)
Mutual labels:  commonjs

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');
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].