![JAR search and dependency download from the Maven repository](/logo.png)
com.github.jeckep.spark.redis.JedisConnector Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sparkjava-redis-session-manager Show documentation
Show all versions of sparkjava-redis-session-manager Show documentation
Classes to store sparkjava session attributes in redis
package com.github.jeckep.spark.redis;
import redis.clients.jedis.BinaryJedisCommands;
public class JedisConnector implements RedisConnector {
private BinaryJedisCommands jedis;
public JedisConnector(BinaryJedisCommands jedis) {
this.jedis = jedis;
}
@Override
public byte[] get(byte[] key) {
return jedis.get(key);
}
@Override
public Long expire(byte[] key, int seconds) {
return jedis.expire(key, seconds);
}
@Override
public String set(byte[] key, byte[] value) {
return jedis.set(key, value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy