How distributed caches work in Cachex
mainA distributed cache spans multiple nodes, allowing each node to store a subset of the total data while maintaining cluster-wide access. For example, in a 3-node cluster, writing 100 keys will result in approximately 33 keys per node. If a key is written on Node A, it may be stored on Node B; a subsequent search on Node C will automatically fetch it from Node B.
Important: Cachex is a caching library, not a database. Data is not replicated to every node. It provides an ephemeral data layer. If you require data persistence across a cluster, use a dedicated database tool.