Crates.io | persistence |
lib.rs | persistence |
version | 0.0.6 |
source | src |
created_at | 2019-09-26 08:15:07.106255 |
updated_at | 2023-06-24 22:30:42.454515 |
description | A resizable, mutable array type implemented on top of mmap, providing persistence for arrays of data in memory. |
homepage | |
repository | https://github.com/ctsrc/persistence |
max_upload_size | |
id | 167774 |
size | 23,600 |
This Rust library provides MmapedVec
;
a resizable, mutable array type implemented on top of
mmap()
,
providing a Vec
-like data structure
with persistence to disk built into it.
MmapedVec
is aimed at developers who wish to write software utilizing
data-oriented design
techniques in run-time environments where all of the following hold true:
Vec
-like data structure is appropriate for some
or all of your data, andThis library makes use of BSD flock()
advisory locks on Unix platforms (Linux, macOS,
FreeBSD, etc).
Provided that your software runs in an environment where any process that attempts to open the files you are persisting your data to honor the advisory locks, everything will be fine and dandy :)
Read the docs to learn more about what this library is for and how you use it.
Don't forget to star persistence on GitHub if you find this library interesting or useful.