Skip to content

AndroidCoderTools/coder-tools-object-cacher

Repository files navigation

What is Object cache ?

We can save Objects or some parameter in memory and local cache, this project meets this issue. And we can load it when we want to use.

How to use ?

gradle config:

compile 'coder.tools.sdk:coder-tools-object-cacher-lib:2.0.0'
    LocalCache = new LocalCache();

Or

    LocalCache = new LocalCache(cacheDir);

And save and get:

    String key = System.currentTimeMillis()+"1";
    localCache.putAndSave(this, key, "String:" + System.currentTimeMillis());
    String vS = (String)localCache.getInner(context,key);

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages