Class BlockingTransactionalHashCommandsImpl<K,​F,​V>

    • Method Detail

      • hget

        public void hget​(K key,
                         F field)
        Description copied from interface: TransactionalHashCommands
        Execute the command HGET. Summary: Get the value of a hash field Group: hash Requires Redis 2.0.0
        Specified by:
        hget in interface TransactionalHashCommands<K,​F,​V>
        Parameters:
        key - the key
        field - the value
      • hincrby

        public void hincrby​(K key,
                            F field,
                            long amount)
        Description copied from interface: TransactionalHashCommands
        Execute the command HINCRBY. Summary: Increment the integer value of a hash field by the given number Group: hash Requires Redis 2.0.0
        Specified by:
        hincrby in interface TransactionalHashCommands<K,​F,​V>
        Parameters:
        key - the key
        field - the value
      • hincrbyfloat

        public void hincrbyfloat​(K key,
                                 F field,
                                 double amount)
        Description copied from interface: TransactionalHashCommands
        Execute the command HINCRBYFLOAT. Summary: Increment the float value of a hash field by the given amount Group: hash Requires Redis 2.6.0
        Specified by:
        hincrbyfloat in interface TransactionalHashCommands<K,​F,​V>
        Parameters:
        key - the key
        field - the value
      • hmget

        public void hmget​(K key,
                          F... fields)
        Description copied from interface: TransactionalHashCommands
        Execute the command HMGET. Summary: Get the values of all the given hash fields Group: hash Requires Redis 2.0.0
        Specified by:
        hmget in interface TransactionalHashCommands<K,​F,​V>
        Parameters:
        key - the key
        fields - the fields
      • hrandfield

        public void hrandfield​(K key,
                               long count)
        Description copied from interface: TransactionalHashCommands
        Execute the command HRANDFIELD. Summary: Get one or multiple random fields from a hash Group: hash Requires Redis 6.2.0
        Specified by:
        hrandfield in interface TransactionalHashCommands<K,​F,​V>
        Parameters:
        key - the key
        count - the number of random key to retrieve. If count is positive, the selected keys are distinct. If count is negative, the produced list can contain duplicated keys.
      • hrandfieldWithValues

        public void hrandfieldWithValues​(K key,
                                         long count)
        Description copied from interface: TransactionalHashCommands
        Execute the command HRANDFIELD. Summary: Get one or multiple random fields and their associated values from a hash Group: hash Requires Redis 6.2.0
        Specified by:
        hrandfieldWithValues in interface TransactionalHashCommands<K,​F,​V>
        Parameters:
        key - the key
        count - the number of random key to retrieve. If count is positive, the selected keys are distinct. If count is negative, the produced list can contain duplicated keys. These duplicates are not included in the produced Map.
      • hset

        public void hset​(K key,
                         F field,
                         V value)
        Description copied from interface: TransactionalHashCommands
        Execute the command HSET. Summary: Set the string value of a hash field Group: hash Requires Redis 2.0.0
        Specified by:
        hset in interface TransactionalHashCommands<K,​F,​V>
        Parameters:
        key - the key
        field - the field
        value - the value
      • hset

        public void hset​(K key,
                         Map<F,​V> map)
        Description copied from interface: TransactionalHashCommands
        Execute the command HSET. Summary: Set the string value of a hash field Group: hash Requires Redis 2.0.0
        Specified by:
        hset in interface TransactionalHashCommands<K,​F,​V>
        Parameters:
        key - the key
        map - the set of key -> value to add to the hash
      • hsetnx

        public void hsetnx​(K key,
                           F field,
                           V value)
        Description copied from interface: TransactionalHashCommands
        Execute the command HSETNX. Summary: Set the value of a hash field, only if the field does not exist Group: hash Requires Redis 2.0.0
        Specified by:
        hsetnx in interface TransactionalHashCommands<K,​F,​V>
        Parameters:
        key - the key
        field - the value
        value - the value
      • hstrlen

        public void hstrlen​(K key,
                            F field)
        Description copied from interface: TransactionalHashCommands
        Execute the command HSTRLEN. Summary: Get the length of the value of a hash field Group: hash Requires Redis 3.2.0
        Specified by:
        hstrlen in interface TransactionalHashCommands<K,​F,​V>
        Parameters:
        key - the key
        field - the value