# \#redis

**URL:** https://forum.elixirforum.com/tag/redis/875.md

[Latest](https://forum.elixirforum.com/latest.md) · [Categories](https://forum.elixirforum.com/categories.md) · [Tags](https://forum.elixirforum.com/tags.md)

---

## [ActiveMemory v0.8 — in-memory tables that speak Ecto (schemas, changesets, Repo-style reads)](https://forum.elixirforum.com/t/activememory-v0-8-in-memory-tables-that-speak-ecto-schemas-changesets-repo-style-reads/76244)

<div class="topic-metadata">

**Author:** [@sullyMusty](https://forum.elixirforum.com/u/sullyMusty)\
**Replies:** 0\
**Last updated:** [August 5, 2026, 9:27am UTC](https://forum.elixirforum.com/t/activememory-v0-8-in-memory-tables-that-speak-ecto-schemas-changesets-repo-style-reads/76244 "2026-08-05T09:27:16Z")

</div>

ActiveMemory 0.8.0 — in-memory tables that speak Ecto ActiveMemory 0.8.0 is now on Hex. ActiveMemory is an in-memory store built on ETS and Mnesia: typed records you query by any attribute, not just a key — no cache key…

---

## [FerricStore - a durable, Redis-compatible cache](https://forum.elixirforum.com/t/ferricstore-a-durable-redis-compatible-cache/74820)

<div class="topic-metadata">

**Author:** [@yoavgeva](https://forum.elixirforum.com/u/yoavgeva)\
**Replies:** 29\
**Last updated:** [July 6, 2026, 6:36am UTC](https://forum.elixirforum.com/t/ferricstore-a-durable-redis-compatible-cache/74820 "2026-07-06T06:36:06Z")

</div>

Hey everyone, I’ve been working on something I want to share and get feedback on. The itch Every web app I build ends up with the same stack: a database, a cache layer, and the app itself. Three things to deploy, moni…

---

## [Thinking Elixir 276 - Elixir v1.19 Types and Speed](https://forum.elixirforum.com/t/thinking-elixir-276-elixir-v1-19-types-and-speed/73099)

<div class="topic-metadata">

**Author:** [@brainlid](https://forum.elixirforum.com/u/brainlid)\
**Replies:** 0\
**Last updated:** [October 28, 2025, 12:21pm UTC](https://forum.elixirforum.com/t/thinking-elixir-276-elixir-v1-19-types-and-speed/73099 "2025-10-28T12:21:49Z")

</div>

Episode 276 of Thinking Elixir. News includes the major release of Elixir v1.19 with enhanced type checking, broader type inference, and up to 4x faster compilation for large projects, plus the first OpenChain certificat…

---

## [Phoenix PubSub + Redis reconnection handling in app-critical flows?](https://forum.elixirforum.com/t/phoenix-pubsub-redis-reconnection-handling-in-app-critical-flows/72369)

<div class="topic-metadata">

**Author:** [@SJNG](https://forum.elixirforum.com/u/SJNG)\
**Replies:** 0\
**Last updated:** [September 4, 2025, 9:27pm UTC](https://forum.elixirforum.com/t/phoenix-pubsub-redis-reconnection-handling-in-app-critical-flows/72369 "2025-09-04T21:27:01Z")

</div>

When using the Redis adapter for Phoenix PubSub, we’ve noticed client connections + messages to Redis being dropped, without consistent / continuous erroring. A few raises when broadcasting (which then go quiet), and som…

---

## [Internal Elixir Caching Alternatives to Redis in Multi-Node Setups](https://forum.elixirforum.com/t/internal-elixir-caching-alternatives-to-redis-in-multi-node-setups/67446)

<div class="topic-metadata">

**Author:** [@keatz55](https://forum.elixirforum.com/u/keatz55)\
**Replies:** 10\
**Last updated:** [November 13, 2024, 9:03am UTC](https://forum.elixirforum.com/t/internal-elixir-caching-alternatives-to-redis-in-multi-node-setups/67446 "2024-11-13T09:03:17Z")

</div>

For Elixir users who replaced or opted out of Redis caching in a multi-node setup, what internal Elixir-based caching approach did you use?

---

## [OffBroadwayRedisStream - A Redis Stream consumer for Broadway](https://forum.elixirforum.com/t/offbroadwayredisstream-a-redis-stream-consumer-for-broadway/34477)

<div class="topic-metadata">

**Author:** [@akash-akya](https://forum.elixirforum.com/u/akash-akya)\
**Replies:** 5\
**Last updated:** [September 11, 2024, 4:37pm UTC](https://forum.elixirforum.com/t/offbroadwayredisstream-a-redis-stream-consumer-for-broadway/34477 "2024-09-11T16:37:46Z")

</div>

I’m tinkering around the idea of processing redis-stream messages in Elixir and this is one solution. off\_broadway\_redis\_stream is a redis-stream consumer for Broadway. It acts as a consumer within the redis-stream-con…

---

## [Sandbox test setup for redis](https://forum.elixirforum.com/t/sandbox-test-setup-for-redis/65957)

<div class="topic-metadata">

**Author:** [@D4no0](https://forum.elixirforum.com/u/D4no0)\
**Replies:** 8\
**Last updated:** [September 9, 2024, 7:53pm UTC](https://forum.elixirforum.com/t/sandbox-test-setup-for-redis/65957 "2024-09-09T19:53:04Z")

</div>

I have currently some functionality that fetches/stores some data in redis using redix. From what I see when it comes to testing, there is nothing specified in the documentation, so I guess the most straightforward way w…

---

## [Deserializing struct's from string to DateTime](https://forum.elixirforum.com/t/deserializing-structs-from-string-to-datetime/53279)

<div class="topic-metadata">

**Author:** [@1stSolo](https://forum.elixirforum.com/u/1stSolo)\
**Replies:** 2\
**Last updated:** [January 19, 2023, 8:17am UTC](https://forum.elixirforum.com/t/deserializing-structs-from-string-to-datetime/53279 "2023-01-19T08:17:38Z")

</div>

I have a struct containing some DateTime fields. When I put it to Redis, it gets serialized as json (using Jason lib). So when it gets deserialized the datetime fields come back as strings. How to restore the data to it…

---

## [Redix problem connecting mix to redis](https://forum.elixirforum.com/t/redix-problem-connecting-mix-to-redis/37914)

<div class="topic-metadata">

**Author:** [@peter.bocian](https://forum.elixirforum.com/u/peter.bocian)\
**Replies:** 5\
**Last updated:** [January 6, 2023, 3:04pm UTC](https://forum.elixirforum.com/t/redix-problem-connecting-mix-to-redis/37914 "2023-01-06T15:04:25Z")

</div>

Hi Elixir team! I am new to this forum. I currently moved to redis sentinel and although production is working fine I am having trouble getting my tests to pass. The error I am seeing is: \*\* (Mix) Could not start applica…

---

## [How can i write nested Map data in redis?](https://forum.elixirforum.com/t/how-can-i-write-nested-map-data-in-redis/50305)

<div class="topic-metadata">

**Author:** [@bishen28](https://forum.elixirforum.com/u/bishen28)\
**Replies:** 2\
**Last updated:** [September 19, 2022, 1:19am UTC](https://forum.elixirforum.com/t/how-can-i-write-nested-map-data-in-redis/50305 "2022-09-19T01:19:54Z")

</div>

I want to write and then read nested map data in redis using the following function Redix.command(:redix, insert\_data) help me out to figure out how should i write my insert\_data Example of sample data is below data…

---

## [Delete many keys in redis](https://forum.elixirforum.com/t/delete-many-keys-in-redis/48215)

<div class="topic-metadata">

**Author:** [@nightfury17200](https://forum.elixirforum.com/u/nightfury17200)\
**Replies:** 7\
**Last updated:** [June 7, 2022, 5:45am UTC](https://forum.elixirforum.com/t/delete-many-keys-in-redis/48215 "2022-06-07T05:45:40Z")

</div>

hello everyone, I want to delete many keys from redis and for now I have created a list of keys and I am doing - list\_of\_all\_keys |\> Enum.each(RedisClient.delete()) is there a better way? Sorry if there is already…

---

## [Does this look ok as a Finite State Machine?](https://forum.elixirforum.com/t/does-this-look-ok-as-a-finite-state-machine/43219)

<div class="topic-metadata">

**Author:** [@Papillon6814](https://forum.elixirforum.com/u/Papillon6814)\
**Replies:** 3\
**Last updated:** [October 28, 2021, 8:53pm UTC](https://forum.elixirforum.com/t/does-this-look-ok-as-a-finite-state-machine/43219 "2021-10-28T20:53:42Z")

</div>

Hello. I 'm creating a mix project which builds a finite state machine on redis. While I’m writing code of the repository, I referred a repository finist which is written in ruby. Implementation defmodule Dfm do @modu…

---

## [Should I use Redis or a global GenServer for data between applications?](https://forum.elixirforum.com/t/should-i-use-redis-or-a-global-genserver-for-data-between-applications/38246)

<div class="topic-metadata">

**Author:** [@ZastrixArundell](https://forum.elixirforum.com/u/ZastrixArundell)\
**Replies:** 6\
**Last updated:** [March 18, 2021, 6:25pm UTC](https://forum.elixirforum.com/t/should-i-use-redis-or-a-global-genserver-for-data-between-applications/38246 "2021-03-18T18:25:56Z")

</div>

I think the title says it all, but let me write a bit of an explanation. Say I have an app A which does some work and it hosted on one machine. App B is a phoenix application which is the user dashboard, etc. and is ran…

---

## [Redix "CLIENT" commands](https://forum.elixirforum.com/t/redix-client-commands/38243)

<div class="topic-metadata">

**Author:** [@Dabsy](https://forum.elixirforum.com/u/Dabsy)\
**Replies:** 2\
**Last updated:** [March 17, 2021, 5:28pm UTC](https://forum.elixirforum.com/t/redix-client-commands/38243 "2021-03-17T17:28:27Z")

</div>

Why is Redix using the CLIENT command? I have a custom session store implementation for my Phoenix app and when attempting to configure\_session(conn, renew: true) in production this command is being received and the comm…

---

## [Cheap Redis hosting for development/demo purposes?](https://forum.elixirforum.com/t/cheap-redis-hosting-for-development-demo-purposes/37963)

<div class="topic-metadata">

**Author:** [@josefrichter](https://forum.elixirforum.com/u/josefrichter)\
**Replies:** 2\
**Last updated:** [March 4, 2021, 11:32pm UTC](https://forum.elixirforum.com/t/cheap-redis-hosting-for-development-demo-purposes/37963 "2021-03-04T23:32:59Z")

</div>

Hi, I have small experimental app that I want to put on Gigalixir, but it is also using Redis. I understand that Gigalixir doesn’t offer Redis. So I was wondering if someone can recommend some cheap/free Redis service fo…

---

## [Thoughtbot Redbird - Redix connection always closed (%Redix.ConnectionError{reason: :closed})](https://forum.elixirforum.com/t/thoughtbot-redbird-redix-connection-always-closed-redix-connectionerror-reason-closed/37858)

<div class="topic-metadata">

**Author:** [@jonbirke0927](https://forum.elixirforum.com/u/jonbirke0927)\
**Replies:** 1\
**Last updated:** [March 1, 2021, 5:04pm UTC](https://forum.elixirforum.com/t/thoughtbot-redbird-redix-connection-always-closed-redix-connectionerror-reason-closed/37858 "2021-03-01T17:04:35Z")

</div>

Hello All, I’m fairly new to the Elixir / Phoenix space, and am implementing cross-application, redis-backed session sharing (the other application is a Rails app). Thoughtbot has a redis session adapter called Redbird.…

---

## [Having more than 1 redis configuration in Elixir App](https://forum.elixirforum.com/t/having-more-than-1-redis-configuration-in-elixir-app/36950)

<div class="topic-metadata">

**Author:** [@ook](https://forum.elixirforum.com/u/ook)\
**Replies:** 1\
**Last updated:** [January 19, 2021, 12:16pm UTC](https://forum.elixirforum.com/t/having-more-than-1-redis-configuration-in-elixir-app/36950 "2021-01-19T12:16:35Z")

</div>

Hello, I have an Elixir 1.8 umbrella application making a very heavy usage of Redis, through RedisPoolex. I’m currently splitting my Redis instance by concerns, so I’d need to target 2 different Redis with my code. For…

---

## [Build correctly Massive Data Structure](https://forum.elixirforum.com/t/build-correctly-massive-data-structure/35454)

<div class="topic-metadata">

**Author:** [@codeRaider](https://forum.elixirforum.com/u/codeRaider)\
**Replies:** 14\
**Last updated:** [November 12, 2020, 1:51am UTC](https://forum.elixirforum.com/t/build-correctly-massive-data-structure/35454 "2020-11-12T01:51:51Z")

</div>

TL;DR Better way and Efficient methods to build a massive data structure (like a snapshot), or this is job for another language? In-deep In a Redis server, we have segmented objects by parameters. The base object is i…

---

## [Connect Redis database to Elixir/Phoenix app](https://forum.elixirforum.com/t/connect-redis-database-to-elixir-phoenix-app/27028)

<div class="topic-metadata">

**Author:** [@irish](https://forum.elixirforum.com/u/irish)\
**Replies:** 3\
**Last updated:** [June 1, 2020, 1:05am UTC](https://forum.elixirforum.com/t/connect-redis-database-to-elixir-phoenix-app/27028 "2020-06-01T01:05:54Z")

</div>

Hi everyone! I’m new in Elixir/Phoenix! I have a need to connect Elixir/Phoenix app(simple form) to a redis database and get data from db. What should i do? Thanks for any help.

---

## [Set a secure flag to a redis session key](https://forum.elixirforum.com/t/set-a-secure-flag-to-a-redis-session-key/29805)

<div class="topic-metadata">

**Author:** [@travisf](https://forum.elixirforum.com/u/travisf)\
**Replies:** 6\
**Last updated:** [March 17, 2020, 7:18pm UTC](https://forum.elixirforum.com/t/set-a-secure-flag-to-a-redis-session-key/29805 "2020-03-17T19:18:08Z")

</div>

I’ve been asked to add a secure flag to a cookie which I believe is being created as a result of this plug: plug( Plug.Session, store: :redis, # 1 day expiration\_in\_seconds: 86\_400 ) We are using R…

---

## [How to initialize an ETS table in Phoenix?](https://forum.elixirforum.com/t/how-to-initialize-an-ets-table-in-phoenix/29431)

<div class="topic-metadata">

**Author:** [@vitorfam](https://forum.elixirforum.com/u/vitorfam)\
**Replies:** 7\
**Last updated:** [February 27, 2020, 10:16pm UTC](https://forum.elixirforum.com/t/how-to-initialize-an-ets-table-in-phoenix/29431 "2020-02-27T22:16:12Z")

</div>

I’m currently using Redis to cache some information in my application. But I saw that ETS may be faster at lookup actions (https://github.com/minhajuddin/redis\_vs\_ets\_showdown) . With that in mind, I want to create an ET…

---

## [How should I queue jobs via Ruby for Exq?](https://forum.elixirforum.com/t/how-should-i-queue-jobs-via-ruby-for-exq/27164)

<div class="topic-metadata">

**Author:** [@ZastrixArundell](https://forum.elixirforum.com/u/ZastrixArundell)\
**Replies:** 0\
**Last updated:** [November 28, 2019, 9:09am UTC](https://forum.elixirforum.com/t/how-should-i-queue-jobs-via-ruby-for-exq/27164 "2019-11-28T09:09:11Z")

</div>

So I am using Redis with Exq to perform jobs. I can queue my jobs and run them via Exq, but I am unable to queue jobs from Ruby in the queue exq and perform them via Exq and I am 80% sure that it’s an error on my end. M…

---

## [Off Broadway Redis - An opinionated Redis list connector for Broadway](https://forum.elixirforum.com/t/off-broadway-redis-an-opinionated-redis-list-connector-for-broadway/21367)

<div class="topic-metadata">

**Author:** [@adammokan](https://forum.elixirforum.com/u/adammokan)\
**Replies:** 4\
**Last updated:** [September 12, 2019, 2:23am UTC](https://forum.elixirforum.com/t/off-broadway-redis-an-opinionated-redis-list-connector-for-broadway/21367 "2019-09-12T02:23:28Z")

</div>

I published a simple (but opinionated) Redis producer for Broadway that I have been using in a production system I’m wrapping up. If anyone wants to check it out and beat on it, it can be found in hex and docs are publis…

---

## [Redex, a Redis server implemented in Elixir](https://forum.elixirforum.com/t/redex-a-redis-server-implemented-in-elixir/24677)

<div class="topic-metadata">

**Author:** [@farhadi](https://forum.elixirforum.com/u/farhadi)\
**Replies:** 3\
**Last updated:** [August 14, 2019, 1:33pm UTC](https://forum.elixirforum.com/t/redex-a-redis-server-implemented-in-elixir/24677 "2019-08-14T13:33:52Z")

</div>

Hi everyone, I’m going to introduce Redex, the project I started almost a year ago and we have been using it in production for a few months now. Redex is a Redis alternative with cloud-native apps in mind. Thanks to d…

---

## [Using Agents or redis to store user sessions](https://forum.elixirforum.com/t/using-agents-or-redis-to-store-user-sessions/24073)

<div class="topic-metadata">

**Author:** [@sc4224](https://forum.elixirforum.com/u/sc4224)\
**Replies:** 7\
**Last updated:** [July 18, 2019, 11:30pm UTC](https://forum.elixirforum.com/t/using-agents-or-redis-to-store-user-sessions/24073 "2019-07-18T23:30:23Z")

</div>

Hi I’m new to session storage in the backend. Would you store a session in an agent or something like redis?

---

## [Can you use the Redix\_Pubsub library with Phoenix?](https://forum.elixirforum.com/t/can-you-use-the-redix-pubsub-library-with-phoenix/15260)

<div class="topic-metadata">

**Author:** [@sc4224](https://forum.elixirforum.com/u/sc4224)\
**Replies:** 30\
**Last updated:** [July 21, 2018, 3:10pm UTC](https://forum.elixirforum.com/t/can-you-use-the-redix-pubsub-library-with-phoenix/15260 "2018-07-21T15:10:35Z")

</div>

Hi all, I’m trying to use this library: GitHub - whatyouhide/redix\_pubsub: Deprecated Redis Pub/Sub client for Elixir. Now built-in into Redix. · GitHub in my phoenix app. It seems this library is meant for elixir, but …

---

## [How to emit a message to channel from redis pubsub](https://forum.elixirforum.com/t/how-to-emit-a-message-to-channel-from-redis-pubsub/15155)

<div class="topic-metadata">

**Author:** [@johndavedecano](https://forum.elixirforum.com/u/johndavedecano)\
**Replies:** 0\
**Last updated:** [July 15, 2018, 2:38pm UTC](https://forum.elixirforum.com/t/how-to-emit-a-message-to-channel-from-redis-pubsub/15155 "2018-07-15T14:38:06Z")

</div>

Hi guys, i am currently working on a microservice architectured application, now, i am building our real time layer and i will be using phoenix. My question is how do i make phoenix subscribe to redis pubsub and broadca…
