Class JedisDAO

java.lang.Object
org.deltava.dao.jedis.JedisDAO
Direct Known Subclasses:
GetTiles, GetTrack, GetWinds, SetTiles, SetTrack, SetWinds

abstract class JedisDAO extends Object
A Data Access Object to read and write from Redis.
Since:
5.0
Version:
8.3
Author:
Luke
  • Field Details

    • _expiry

      protected int _expiry
  • Constructor Details

    • JedisDAO

      JedisDAO()
  • Method Details

    • createKey

      protected String createKey(Object key)
      Creates a Redis bucket:key key.
      Parameters:
      key - an object key
      Returns:
      a Redis key
    • setBucket

      public void setBucket(Object... buckets)
      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