Summer MyBatis Redis Cache

MyBatis Redis Cache

License

License

Categories

Categories

Redis Data Databases MyBatis ORM
GroupId

GroupId

me.chyxion.summer
ArtifactId

ArtifactId

summer-mybatis-redis-cache
Last Version

Last Version

0.0.1-RELEASE
Release Date

Release Date

Type

Type

jar
Description

Description

Summer MyBatis Redis Cache
MyBatis Redis Cache
Project URL

Project URL

https://github.com/chyxion/summer-mybatis-redis-cache
Source Code Management

Source Code Management

https://github.com/chyxion/summer-mybatis-redis-cache

Download summer-mybatis-redis-cache

How to add to project

<!-- https://jarcasting.com/artifacts/me.chyxion.summer/summer-mybatis-redis-cache/ -->
<dependency>
    <groupId>me.chyxion.summer</groupId>
    <artifactId>summer-mybatis-redis-cache</artifactId>
    <version>0.0.1-RELEASE</version>
</dependency>
// https://jarcasting.com/artifacts/me.chyxion.summer/summer-mybatis-redis-cache/
implementation 'me.chyxion.summer:summer-mybatis-redis-cache:0.0.1-RELEASE'
// https://jarcasting.com/artifacts/me.chyxion.summer/summer-mybatis-redis-cache/
implementation ("me.chyxion.summer:summer-mybatis-redis-cache:0.0.1-RELEASE")
'me.chyxion.summer:summer-mybatis-redis-cache:jar:0.0.1-RELEASE'
<dependency org="me.chyxion.summer" name="summer-mybatis-redis-cache" rev="0.0.1-RELEASE">
  <artifact name="summer-mybatis-redis-cache" type="jar" />
</dependency>
@Grapes(
@Grab(group='me.chyxion.summer', module='summer-mybatis-redis-cache', version='0.0.1-RELEASE')
)
libraryDependencies += "me.chyxion.summer" % "summer-mybatis-redis-cache" % "0.0.1-RELEASE"
[me.chyxion.summer/summer-mybatis-redis-cache "0.0.1-RELEASE"]

Dependencies

compile (2)

Group / Artifact Type Version
org.springframework.data : spring-data-redis jar 1.7.1.RELEASE
org.mybatis : mybatis jar 3.4.0

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

Summer MyBatis Redis Cache

Usage

Add Maven Dependency

    <dependency>
        <groupId>me.chyxion.summer</groupId>
        <artifactId>summer-mybatis-redis-cache</artifactId>
        <version>0.0.1-RELEASE</version>
    </dependency>

MyBatis Settings Config

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" 
        "http://mybatis.org/dtd/mybatis-3-config.dtd">
    <configuration>
        <settings>
            <setting name="cacheEnabled" value="true" />
        </settings>
    </configuration>

Mapper Config

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE mapper PUBLIC
        "-//mybatis.org//DTD Mapper 3.0//EN"
        "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
    <mapper namespace="me.chyxion.demo.mappers.UserMapper">
        <cache type="me.chyxion.summer.mybatis.cache.RedisCache" />
        ...
    </mapper>

Contact

[email protected]

Versions

Version
0.0.1-RELEASE