cache-spring-boot-starter

simple local cache

License

License

Categories

Categories

Spring Boot Container Microservices
GroupId

GroupId

com.github.houbbbbb
ArtifactId

ArtifactId

cache-spring-boot-starter
Last Version

Last Version

0.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

cache-spring-boot-starter
simple local cache
Project URL

Project URL

https://github.com/houbbbbb/cache-spring-boot-starter
Source Code Management

Source Code Management

https://github.com/houbbbbb/cache-spring-boot-starter

Download cache-spring-boot-starter

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.houbbbbb/cache-spring-boot-starter/ -->
<dependency>
    <groupId>com.github.houbbbbb</groupId>
    <artifactId>cache-spring-boot-starter</artifactId>
    <version>0.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.houbbbbb/cache-spring-boot-starter/
implementation 'com.github.houbbbbb:cache-spring-boot-starter:0.0.1'
// https://jarcasting.com/artifacts/com.github.houbbbbb/cache-spring-boot-starter/
implementation ("com.github.houbbbbb:cache-spring-boot-starter:0.0.1")
'com.github.houbbbbb:cache-spring-boot-starter:jar:0.0.1'
<dependency org="com.github.houbbbbb" name="cache-spring-boot-starter" rev="0.0.1">
  <artifact name="cache-spring-boot-starter" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.houbbbbb', module='cache-spring-boot-starter', version='0.0.1')
)
libraryDependencies += "com.github.houbbbbb" % "cache-spring-boot-starter" % "0.0.1"
[com.github.houbbbbb/cache-spring-boot-starter "0.0.1"]

Dependencies

compile (7)

Group / Artifact Type Version
org.springframework.boot : spring-boot-starter-aop jar 2.2.0.RELEASE
org.springframework.boot : spring-boot-configuration-processor jar 2.2.0.RELEASE
org.springframework.boot : spring-boot-autoconfigure jar 2.2.0.RELEASE
org.apache.maven.plugins : maven-gpg-plugin jar 1.5
org.apache.maven.plugins : maven-javadoc-plugin jar 3.1.0
org.apache.maven.plugins : maven-source-plugin jar 3.1.0
org.apache.maven.plugins : maven-release-plugin jar 2.5.1

Project Modules

There are no modules declared in this project.

cache-spring-boot-starter

一个简单的本地缓存

maven依赖:

<dependency>
    <groupId>com.github.houbbbbb</groupId>
    <artifactId>cache-spring-boot-starter</artifactId>
    <version>0.0.1</version>
</dependency>

// 在查询操作上增加cache的name以及key参数格式 - #[参数名],会根据 '名称_入参' 进行缓存

// value为true表示加缓存

@MapCacheAnnotation(name = "cachename", key = "#params", value = true)
public String select(String params) {
    
}

// 在修改操作上增加缓存

// name用来标志是哪个缓存

// value用来表示删除缓存,这样每次修改以后,缓存会及时更新

@MapCacheAnnotation(name = "cachename", value = false)
public void update(String params) {

}

Versions

Version
0.0.1