Interface SetSpec.ComparisonSpec<K,V>

Type Parameters:
K - key type.
V - value type.
Enclosing interface:
SetSpec<K,V>

public static interface SetSpec.ComparisonSpec<K,V>
Steps to customize value or digest comparison for conditional set operations.
Since:
4.1
Author:
Yordan Tsintsov
  • Method Summary

    Modifier and Type
    Method
    Description
    digest(String hex16)
    Configure digest comparison for conditional set operations.
    value(V value)
    Configure value comparison for conditional set operations.
  • Method Details

    • value

      SetSpec<K,V> value(V value)
      Configure value comparison for conditional set operations.
      Parameters:
      value - the value to compare against.
      Returns:
      the previously used SetSpec.
    • digest

      SetSpec<K,V> digest(String hex16)
      Configure digest comparison for conditional set operations.
      Parameters:
      hex16 - hex representation of the digest to compare against. Can be obtained through Redis' DIGEST command.
      Returns:
      the previously used SetSpec.