Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"java.compile.nullAnalysis.mode": "automatic"
}
2 changes: 1 addition & 1 deletion docs/CN/CacheAPI.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

# 简介
JetCache2.0的核心是```com.alicp.jetcache.Cache```接口(以下简写为```Cache```),它提供了部分类似于```javax.cache.Cache```(JSR107)的API操作。没有完整实现JSR107的原因包括:
JetCache2.0的核心是```org.vison.cache.Cache```接口(以下简写为```Cache```),它提供了部分类似于```javax.cache.Cache```(JSR107)的API操作。没有完整实现JSR107的原因包括:
1. 希望维持API的简单易用。
1. 对于特定的远程缓存系统来说,```javax.cache.Cache```中定义的有些操作无法高效率的实现,比如一些原子操作方法和类似```removeAll()```这样的方法。
1. JSR107比较复杂,完整实现要做的工作很多。
Expand Down
32 changes: 16 additions & 16 deletions docs/CN/GettingStarted.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public interface UserService {
# POM
```xml
<dependency>
<groupId>com.alicp.jetcache</groupId>
<groupId>org.vison.cache</groupId>
<artifactId>jetcache-starter-redis</artifactId>
<version>${jetcache.latest.version}</version>
</dependency>
Expand Down Expand Up @@ -74,8 +74,8 @@ jetcache:
```java
package com.company.mypackage;

import com.alicp.jetcache.anno.config.EnableCreateCacheAnnotation;
import com.alicp.jetcache.anno.config.EnableMethodCache;
import org.vison.cache.anno.config.EnableCreateCacheAnnotation;
import org.vison.cache.anno.config.EnableMethodCache;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

Expand All @@ -94,12 +94,12 @@ public class MySpringBootApp {
如果没有使用spring boot,可以按下面的方式配置(这里使用jedis客户端连接redis为例)。
```xml
<dependency>
<groupId>com.alicp.jetcache</groupId>
<groupId>org.vison.cache</groupId>
<artifactId>jetcache-anno</artifactId>
<version>${jetcache.latest.version}</version>
</dependency>
<dependency>
<groupId>com.alicp.jetcache</groupId>
<groupId>org.vison.cache</groupId>
<artifactId>jetcache-redis</artifactId>
<version>${jetcache.latest.version}</version>
</dependency>
Expand All @@ -111,17 +111,17 @@ package com.company.mypackage;
import java.util.HashMap;
import java.util.Map;

import com.alicp.jetcache.anno.CacheConsts;
import com.alicp.jetcache.anno.config.EnableCreateCacheAnnotation;
import com.alicp.jetcache.anno.config.EnableMethodCache;
import com.alicp.jetcache.anno.support.GlobalCacheConfig;
import com.alicp.jetcache.anno.support.SpringConfigProvider;
import com.alicp.jetcache.embedded.EmbeddedCacheBuilder;
import com.alicp.jetcache.embedded.LinkedHashMapCacheBuilder;
import com.alicp.jetcache.redis.RedisCacheBuilder;
import com.alicp.jetcache.support.Fastjson2KeyConvertor;
import com.alicp.jetcache.support.JavaValueDecoder;
import com.alicp.jetcache.support.JavaValueEncoder;
import org.vison.cache.anno.CacheConsts;
import org.vison.cache.anno.config.EnableCreateCacheAnnotation;
import org.vison.cache.anno.config.EnableMethodCache;
import org.vison.cache.anno.support.GlobalCacheConfig;
import org.vison.cache.anno.support.SpringConfigProvider;
import org.vison.cache.embedded.EmbeddedCacheBuilder;
import org.vison.cache.embedded.LinkedHashMapCacheBuilder;
import org.vison.cache.redis.RedisCacheBuilder;
import org.vison.cache.support.Fastjson2KeyConvertor;
import org.vison.cache.support.JavaValueDecoder;
import org.vison.cache.support.JavaValueEncoder;
import org.apache.commons.pool2.impl.GenericObjectPoolConfig;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
Expand Down
2 changes: 1 addition & 1 deletion docs/CN/Stat.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ StatInfoLogger的构造参数设置为true会有更详细的统计信息,包
</encoder>
</appender>

<logger name="com.alicp.jetcache" level="INFO" additivity="false">
<logger name="org.vison.cache" level="INFO" additivity="false">
<appender-ref ref="JETCACHE_LOGFILE" />
</logger>
```
2 changes: 1 addition & 1 deletion docs/EN/CacheAPI.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

# Introduce
The core concept of JetCache is the ```com.alicp.jetcache.Cache```(hereinafter called ```Cache```) interface, it provides some API similar like ```javax.cache.Cache``` in JSR107.
The core concept of JetCache is the ```org.vison.cache.Cache```(hereinafter called ```Cache```) interface, it provides some API similar like ```javax.cache.Cache``` in JSR107.
The reason that JetCache does not implements JSR107 includes:
1. We want that the API of JetCache are more simpler and easy to use than JSR107.
1. Some operation defined in ```javax.cache.Cache``` are difficult to implement efficiently in some specific distributed cache system (eg. some atomic operation and ```removeAll()```).
Expand Down
32 changes: 16 additions & 16 deletions docs/EN/GettingStarted.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ This example using jedis to accessing redis(or you can consider using [lettuce](
# POM
```xml
<dependency>
<groupId>com.alicp.jetcache</groupId>
<groupId>org.vison.cache</groupId>
<artifactId>jetcache-starter-redis</artifactId>
<version>${jetcache.latest.version}</version>
</dependency>
Expand Down Expand Up @@ -73,8 +73,8 @@ Then create the application class of Spring Boot:
```java
package com.company.mypackage;

import com.alicp.jetcache.anno.config.EnableCreateCacheAnnotation;
import com.alicp.jetcache.anno.config.EnableMethodCache;
import org.vison.cache.anno.config.EnableCreateCacheAnnotation;
import org.vison.cache.anno.config.EnableMethodCache;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

Expand All @@ -95,12 +95,12 @@ Other code are same with standard Spring Boot Application. This class can run di
This example using jedis to accessing redis:
```xml
<dependency>
<groupId>com.alicp.jetcache</groupId>
<groupId>org.vison.cache</groupId>
<artifactId>jetcache-anno</artifactId>
<version>${jetcache.latest.version}</version>
</dependency>
<dependency>
<groupId>com.alicp.jetcache</groupId>
<groupId>org.vison.cache</groupId>
<artifactId>jetcache-redis</artifactId>
<version>${jetcache.latest.version}</version>
</dependency>
Expand All @@ -112,17 +112,17 @@ package com.company.mypackage;
import java.util.HashMap;
import java.util.Map;

import com.alicp.jetcache.anno.CacheConsts;
import com.alicp.jetcache.anno.config.EnableCreateCacheAnnotation;
import com.alicp.jetcache.anno.config.EnableMethodCache;
import com.alicp.jetcache.anno.support.GlobalCacheConfig;
import com.alicp.jetcache.anno.support.SpringConfigProvider;
import com.alicp.jetcache.embedded.EmbeddedCacheBuilder;
import com.alicp.jetcache.embedded.LinkedHashMapCacheBuilder;
import com.alicp.jetcache.redis.RedisCacheBuilder;
import com.alicp.jetcache.support.Fastjson2KeyConvertor;
import com.alicp.jetcache.support.JavaValueDecoder;
import com.alicp.jetcache.support.JavaValueEncoder;
import org.vison.cache.anno.CacheConsts;
import org.vison.cache.anno.config.EnableCreateCacheAnnotation;
import org.vison.cache.anno.config.EnableMethodCache;
import org.vison.cache.anno.support.GlobalCacheConfig;
import org.vison.cache.anno.support.SpringConfigProvider;
import org.vison.cache.embedded.EmbeddedCacheBuilder;
import org.vison.cache.embedded.LinkedHashMapCacheBuilder;
import org.vison.cache.redis.RedisCacheBuilder;
import org.vison.cache.support.Fastjson2KeyConvertor;
import org.vison.cache.support.JavaValueDecoder;
import org.vison.cache.support.JavaValueEncoder;
import org.apache.commons.pool2.impl.GenericObjectPoolConfig;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
Expand Down
2 changes: 1 addition & 1 deletion docs/EN/Stat.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ With logback, you can use below configuration to output logs to a separate file:
</encoder>
</appender>

<logger name="com.alicp.jetcache" level="INFO" additivity="false">
<logger name="org.vison.cache" level="INFO" additivity="false">
<appender-ref ref="JETCACHE_LOGFILE" />
</logger>
```
69 changes: 69 additions & 0 deletions images/annotation_driven_extension.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
84 changes: 84 additions & 0 deletions images/cache_workflow.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading