Skip to content

Repository files navigation

storr.tiledb

R Language CRAN status storr.tiledb status badge repo-status License R CMD Check Codecov test coverage Last Commit Documentation

A TileDB Embedded-based driver for storr interface, a key-value store with content-addressable storage for R objects.

Overview

storr.tiledb is an R package that extends the storr ecosystem with a TileDB-based driver and a compatible storr R6 class to leverage the advantages of the underlying backend.

Ask DeepWiki

Key features

  • Fast key-value operations using TileDB methods
  • Additional faster serialization formats through qs2 package1
  • Per key metadata: notes and Time-To-Live (TTL) expiration timestamps next to key-value pairs
  • Asynchronous and parallel operations with mirai
  • In-memory caching layers with hash tables
  • Native cloud storage support (AWS S3, Azure Blob, Google Cloud Storage)
  • Data versioning (time-traveling) and encryption support
  • Flexible schema configuration for performance tuning

Installation

Development version from GitHub:

# pak
pak::pkg_install("cgiachalis/storr.tiledb")

# remotes
remotes::install_github("cgiachalis/storr.tiledb")

From R-universe:

# install 'storr.tiledb'
install.packages('storr.tiledb', repos = c('https://cgiachalis.r-universe.dev'))

Quick start

library(storr.tiledb)

# Create a temporary URI
uri <- tempfile()

# Create a TileDB storr
sto <- storr_tiledb(uri, init = TRUE)

# Set
sto$set("mykey1", list(a = 1))
sto$set("mykey2", "abc")

# Get
sto$get("mykey2")
 [1] "abc"
 
# List all keys
sto$list()
[1] "mykey1" "mykey2"

# Delete
sto$del("mykey1")

Documentation

For more detailed information, visit the full documentation on GitHub Pages.

  • Get Started - Quick reference to basic operations
  • API Usage - Learn about storr.tiledb operations through examples
  • Data Model - Overview of TileDB driver data model

Alternative storr drivers

Footnotes

  1. qs2 package is soft dependency, so it has to be installed to use the 'qs2' or 'qdata' serialization formats. ↩

About

TileDB driver for 'storr' interface

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages