redis-starter

Redis Starter

Лицензия

Лицензия

Категории

Категории

Redis Данные Базы данных
Группа

Группа

com.github.enesusta
Идентификатор

Идентификатор

redis-starter
Последняя версия

Последняя версия

1.0.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

redis-starter
Redis Starter
Ссылка на сайт

Ссылка на сайт

https://github.com/enesusta/redis-starter
Система контроля версий

Система контроля версий

http://github.com/enesusta/redis-starter

Скачать redis-starter

Как подключить последнюю версию

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

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
redis.clients : jedis jar 3.3.0

Модули Проекта

Данный проект не имеет модулей.

Install

<dependency>
  <groupId>com.github.enesusta</groupId>
  <artifactId>redis-starter</artifactId>
  <version>1.0.1</version>
</dependency>

Example:

import com.github.enesusta.redis.PoolRedisInstance;
import com.github.enesusta.redis.RedisConfiguration;
import com.github.enesusta.redis.RedisInstance;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import redis.clients.jedis.JedisPool;

@Configuration
public class RedisPoolConfiguration {

    @Value("${spring.redis.jedis.password}")
    private String password;

    @Bean
    public JedisPool jedisPool() {
        final RedisConfiguration redisConfiguration = new RedisConfiguration.Builder(password)
                .host("localhost")
                .port(6379)
                .build();

        final RedisInstance<JedisPool> jedisPoolRedisInstance = new PoolRedisInstance(redisConfiguration);
        return jedisPoolRedisInstance.getRedisInstance();
    }

}

Версии библиотеки

Версия
1.0.1
1.0.0