cosmian_sse_memories

Crates.iocosmian_sse_memories
lib.rscosmian_sse_memories
version8.0.0
created_at2025-08-06 15:43:03.07733+00
updated_at2025-08-06 15:43:03.07733+00
descriptionSymmetric Searchable Encryption
homepage
repositoryhttps://github.com/Cosmian/findex/
max_upload_size
id1783933
size108,940
(Manuthor)

documentation

README

Findex Memories

A collection of memory implementations for Findex, a concurrent and database-agnostic Searchable Encryption scheme. Findex memories provide compatibility with concrete databases, allowing the core Findex library to remain database-agnostic. This separation enables users to integrate Findex with their preferred database system.

Setup

First, add cosmian_sse_memories as dependency to your project :

cargo add cosmian_sse_memories # do not forget to enable the adequate feature for the back end you want to use !

If you don't have a running Redis or Postgres instance running, you can use the docker-compose.yml file provided with this repository by running docker-compose up.

For detailed usage examples, refer to the examples folder.

Available Storage Back-ends

This library provides implementations for the following storage systems:

Feature Database Dependencies
redis-mem Redis redis v0.31
sqlite-mem SQLite async-sqlite v0.5
postgres-mem PostgreSQL tokio-postgres v0.7.9
tokio v1.44
deadpool-postgres v0.14.1

To execute the PostgreSQL tests and run the benches locally with your postgres installation, the easiest way would be to add the following service to your pg_service.conf file (usually under ~/.pg_service.conf):

[cosmian_service]
host=localhost
dbname=cosmian
user=cosmian
password=cosmian
Commit count: 498

cargo fmt