Class JedisDAO
java.lang.Object
org.deltava.dao.jedis.JedisDAO
A Data Access Object to read and write from Redis.
- Since:
- 5.0
- Version:
- 8.3
- Author:
- Luke
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
_expiry
protected int _expiry
-
-
Constructor Details
-
JedisDAO
JedisDAO()
-
-
Method Details
-
createKey
-
setBucket
Sets the Redis bucket to store in. Bucket names will be chained together with a colon.- Parameters:
buckets
- the bucket name(s)
-
setExpiry
public void setExpiry(int ed) Sets the expiration date/time.- Parameters:
ed
- the number of seconds in the future to expire
-