All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.jeckep.spark.redis.JedisConnector Maven / Gradle / Ivy

There is a newer version: 0.3.0
Show newest version
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