Cache.Sandbox (elixir_cache v0.3.7)

View Source

This module is the adapter used by the SandboxRegistry to mock out all the other adapters therefore it must implement all features shared across all adapters. It uses a basic Agent and shouldn't be used in production. It's good for dev & test to avoid needing dependencies

Summary

Functions

child_spec(arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

command(cache_name, command, opts)

command!(cache_name, command, opts)

hash_delete(cache_name, key, hash_key, opts)

hash_get(cache_name, key, hash_key, opts)

hash_get_all(cache_name, key, opts)

hash_get_many(cache_name, keys_fields, opts)

hash_scan(cache_name, key, scan_opts, opts)

hash_set(cache_name, key, field, value, ttl, opts)

hash_set_many(cache_name, keys_fields_values, ttl, opts)

hash_values(cache_name, key, opts)

json_array_append(cache_name, key, path, value, opts)

json_clear(cache_name, key, path, opts)

json_delete(cache_name, key, path, opts)

json_get(cache_name, key, path, opts)

json_incr(cache_name, key, path, incr \\ 1, opts)

json_set(cache_name, key, path, value, opts)

pipeline(cache_name, commands, opts)

pipeline!(cache_name, commands, opts)

scan(cache_name, scan_opts, opts)