Interface HashMapper<T,K,V>

Type Parameters:
T - Object type
K - Redis Hash field type
V - Redis Hash value type
All Known Implementing Classes:
BeanUtilsHashMapper, DecoratingStringHashMapper, Jackson2HashMapper, ObjectHashMapper

public interface HashMapper<T,K,V>
Core mapping contract between Java types and Redis hashes/maps. It's up to the implementation to support nested objects.
Author:
Costin Leau, Mark Paluch
  • Method Summary

    Modifier and Type
    Method
    Description
    fromHash(Map<K,V> hash)
    Convert a hash (map) to an object.
    toHash(T object)
    Convert an object to a map that can be used with Redis hashes.
  • Method Details

    • toHash

      Map<K,V> toHash(T object)
      Convert an object to a map that can be used with Redis hashes.
      Parameters:
      object -
      Returns:
    • fromHash

      T fromHash(Map<K,V> hash)
      Convert a hash (map) to an object.
      Parameters:
      hash -
      Returns: