{"id":17100775,"url":"https://github.com/gbaldera/ticaching","last_synced_at":"2025-08-17T10:04:13.667Z","repository":{"id":3367869,"uuid":"4414476","full_name":"gbaldera/TiCaching","owner":"gbaldera","description":"Commonjs module for caching data in Apps made with Titanium Mobile","archived":false,"fork":false,"pushed_at":"2017-11-28T14:33:46.000Z","size":4,"stargazers_count":23,"open_issues_count":0,"forks_count":8,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-13T13:45:16.036Z","etag":null,"topics":["commonjs","javascript","titanium-mobile"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gbaldera.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-05-23T01:01:47.000Z","updated_at":"2024-06-05T07:59:11.000Z","dependencies_parsed_at":"2022-07-21T10:55:03.372Z","dependency_job_id":null,"html_url":"https://github.com/gbaldera/TiCaching","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gbaldera/TiCaching","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gbaldera%2FTiCaching","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gbaldera%2FTiCaching/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gbaldera%2FTiCaching/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gbaldera%2FTiCaching/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gbaldera","download_url":"https://codeload.github.com/gbaldera/TiCaching/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gbaldera%2FTiCaching/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270831798,"owners_count":24653414,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-17T02:00:09.016Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["commonjs","javascript","titanium-mobile"],"created_at":"2024-10-14T15:14:38.943Z","updated_at":"2025-08-17T10:04:13.642Z","avatar_url":"https://github.com/gbaldera.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"TiCaching\n================\n\n**Version:** 1.0\n\n**Platforms:** tested on iOS and Android \n\n**TiCaching** is a Commonjs module for caching data objects in apps made with [Appcelerator's Titanium Mobile](http://www.appcelerator.com/platform/titanium-sdk), useful for cache data returned from REST APIs. It is based on my [Caching library](https://github.com/gbaldera/CI-Caching/) for Codeigniter.\n\nUsage\n================\n\nJust copy the \"ticaching.js\" anywhere in your project's Resources directory and references it like this:\n\n```js\nvar caching = require('ticaching');\n```\n\nAfter that, use the caching functions:\n\n```js\n//cached some data\nvar data = {'name': 'Gustavo', 'age': 24, 'country': 'Dominican Republic'}\ncaching.save('my_key', data, 60) // cache data for 1 minute\ncaching.save('my_key', data) // or cache data for 30 seconds (default)\n \n//get cached data\nvar data = caching.get('my_key');\n\n// delete chached data\ncaching.del('my_key');\n\n// delete all chached data\ncaching.clear();\n\n// delete all expired data\ncaching.clear(true);\n\n// check if especific key exists\ncaching.exists('my_key');\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgbaldera%2Fticaching","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgbaldera%2Fticaching","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgbaldera%2Fticaching/lists"}