ex_sider v0.2.0 RedisHash

Offers read and write access to Redis’ hash functions, without caching. All functions directly result in calls to Redis.

Writing data will always overwrite existing values.

Summary

Functions

Delete this hash from the Redis repo

If local caching is enabled, this will checkout the initial cache state from redis upon creation

Pulls all fields of this hash from Redis. Returns nil or a map

Push all local keys/values back to the Redis repo. This simply overwrites whatever is already in there. Returns ok or error and the reason

Functions

delete(container)

Delete this hash from the Redis repo.

new(redis_key)

If local caching is enabled, this will checkout the initial cache state from redis upon creation.

Options:

  • :binary_mode - true/false depending on whether data should be put through :erlang.term_to_binary and :erlang.binary_to_term respectively or not (default: true)
new(redis_key, opts)
pull(redis_hash)

Pulls all fields of this hash from Redis. Returns nil or a map.

push(redis_hash, data)

Push all local keys/values back to the Redis repo. This simply overwrites whatever is already in there. Returns ok or error and the reason.