kandi background
Explore Kits

ASimpleCache | a simple cache for android and java

 by   yangfuhai Java Version: Current License: Apache-2.0

 by   yangfuhai Java Version: Current License: Apache-2.0

Download this library from

kandi X-RAY | ASimpleCache Summary

ASimpleCache is a Java library. ASimpleCache has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. However ASimpleCache build file is not available. You can download it from GitHub.
a simple cache for android and java
Support
Support
Quality
Quality
Security
Security
License
License
Reuse
Reuse

kandi-support Support

  • ASimpleCache has a medium active ecosystem.
  • It has 3618 star(s) with 1249 fork(s). There are 144 watchers for this library.
  • It had no major release in the last 12 months.
  • There are 29 open issues and 4 have been closed. On average issues are closed in 323 days. There are 4 open pull requests and 0 closed requests.
  • It has a neutral sentiment in the developer community.
  • The latest version of ASimpleCache is current.
ASimpleCache Support
Best in #Java
Average in #Java
ASimpleCache Support
Best in #Java
Average in #Java

quality kandi Quality

  • ASimpleCache has 0 bugs and 0 code smells.
ASimpleCache Quality
Best in #Java
Average in #Java
ASimpleCache Quality
Best in #Java
Average in #Java

securitySecurity

  • ASimpleCache has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
  • ASimpleCache code analysis shows 0 unresolved vulnerabilities.
  • There are 0 security hotspots that need review.
ASimpleCache Security
Best in #Java
Average in #Java
ASimpleCache Security
Best in #Java
Average in #Java

license License

  • ASimpleCache is licensed under the Apache-2.0 License. This license is Permissive.
  • Permissive licenses have the least restrictions, and you can use them in most projects.
ASimpleCache License
Best in #Java
Average in #Java
ASimpleCache License
Best in #Java
Average in #Java

buildReuse

  • ASimpleCache releases are not available. You will need to build from source code and install.
  • ASimpleCache has no build file. You will be need to create the build yourself to build the component from source.
  • Installation instructions are not available. Examples and code snippets are available.
ASimpleCache Reuse
Best in #Java
Average in #Java
ASimpleCache Reuse
Best in #Java
Average in #Java
Top functions reviewed by kandi - BETA

kandi has reviewed ASimpleCache and discovered the below as its top functions. This is intended to give you an instant insight into ASimpleCache implemented functionality, and help decide if they suit your requirements.

  • Main loop .
  • Get file as string
  • Gets data as binary .
  • Creates the user .
  • Load the JSONObject from the cache .
  • String representation of the user bean .
  • Saves view to cache
  • Set the age of the entry .
  • About an application .
  • Save a new object activity

ASimpleCache Key Features

a simple cache for android and java

default

copy iconCopydownload iconDownload
 ASimpleCache 是一个为android制定的 轻量级的 开源缓存框架。轻量到只有一个java文件(由十几个类精简而来)。


---
## 1、它可以缓存什么东西?
普通的字符串、JsonObject、JsonArray、Bitmap、Drawable、序列化的java对象,和 byte数据。


## 2、它有什么特色?
* 特色主要是:
 *  1:轻,轻到只有一个JAVA文件。
 *  2:可配置,可以配置缓存路径,缓存大小,缓存数量等。
 *  3:可以设置缓存超时时间,缓存超时自动失效,并被删除。
 *  4:支持多进程。

##3、它在android中可以用在哪些场景?
* 1、替换SharePreference当做配置文件
* 2、可以缓存网络请求数据,比如oschina的android客户端可以缓存http请求的新闻内容,缓存时间假设为1个小时,超时后自动失效,让客户端重新请求新的数据,减少客户端流量,同时减少服务器并发量。
* 3、您来说...


##4、如何使用 ASimpleCache?
以下有个小的demo,希望您能喜欢:

```java
ACache mCache = ACache.get(this);
mCache.put("test_key1", "test value");
mCache.put("test_key2", "test value", 10);//保存10秒,如果超过10秒去获取这个key,将为null
mCache.put("test_key3", "test value", 2 * ACache.TIME_DAY);//保存两天,如果超过两天去获取这个key,将为null
```
获取数据
```java
ACache mCache = ACache.get(this);
String value = mCache.getAsString("test_key1");
```

更多示例请见Demo

#关于作者michael
* 屌丝程序员一枚,喜欢开源。
* 个人博客:[http://www.yangfuhai.com](http://www.yangfuhai.com)
* 交流QQ群 : 192341294(已满) 246710918(未满)

Community Discussions

No Community Discussions are available at this moment for ASimpleCache.Refer to stack overflow page for discussions.

No Community Discussions are available at this moment for ASimpleCache.Refer to stack overflow page for discussions.

Community Discussions, Code Snippets contain sources that include Stack Exchange Network

Vulnerabilities

No vulnerabilities reported

Install ASimpleCache

You can download it from GitHub.
You can use ASimpleCache like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the ASimpleCache component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .

Support

For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .

DOWNLOAD this Library from

Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
over 430 million Knowledge Items
Find more libraries
Reuse Solution Kits and Libraries Curated by Popular Use Cases

Save this library and start creating your kit

Share this Page

share link
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
over 430 million Knowledge Items
Find more libraries
Reuse Solution Kits and Libraries Curated by Popular Use Cases

Save this library and start creating your kit

  • © 2022 Open Weaver Inc.