Class AerospikeCacheKey

java.lang.Object
org.springframework.data.aerospike.cache.AerospikeCacheKey

public class AerospikeCacheKey extends Object
Wrapper class used in caching. Receives hash of the cache key as a String, a long number or a byte array.
  • Method Details

    • of

      public static AerospikeCacheKey of(String string)
      Instantiate AerospikeCacheKey instance with a String.
      Parameters:
      string - String parameter
      Returns:
      new instance of AerospikeCacheKey initialized with the given parameter
    • of

      public static AerospikeCacheKey of(long number)
      Instantiate AerospikeCacheKey instance with a long number.
      Parameters:
      number - long number
      Returns:
      new instance of AerospikeCacheKey initialized with the given parameter
    • of

      public static AerospikeCacheKey of(byte[] data)
      Instantiate AerospikeCacheKey instance with a byte array.
      Parameters:
      data - byte array
      Returns:
      new instance of AerospikeCacheKey initialized with the given parameter