# Custom Short and Long Memory

**URL:** <https://community.crewai.com/t/custom-short-and-long-memory/5946>\
**Category:** CrewAI Community Support\
**Tags:** crewai, memory\
**Created:** [May 25, 2025, 9:41pm UTC](https://community.crewai.com/t/custom-short-and-long-memory/5946 "2025-05-25T21:41:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rusXL](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/rusxl/32/3504_2.png) [@rusXL](https://community.crewai.com/u/rusXL)\
**Post date:** [May 25, 2025, 9:41pm UTC](https://community.crewai.com/t/custom-short-and-long-memory/5946/1 "2025-05-25T21:41:43Z")

</div>

We were trying to implement custom short and long-term memory with custom utilization of `mem0`.

We have created a `CustomStorage` class deriving from `Mem0Storage`.

Is it even allowed to have custom `ShortTermMemory` and `LongTermMemory` classes? How to do so?

This example only shows that it is possible to have [custom storage paths](https://docs.crewai.com/concepts/memory#custom-storage-paths).

---

<div class="post-metadata">

**Author:** ![tonykipkemboi](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/tonykipkemboi/32/4070_2.png) [@tonykipkemboi](https://community.crewai.com/u/tonykipkemboi)\
**Post date:** [May 25, 2025, 10:53pm UTC](https://community.crewai.com/t/custom-short-and-long-memory/5946/2 "2025-05-25T22:53:24Z")

</div>

rolling out new docs on this tomorrow.
