InMemoryStorage: In-Memory Storage

InMemoryStorageR Documentation

In-Memory Storage

Description

Fast in-memory storage backend

Public fields

data

Storage data

Methods

Public methods


Method new()

Create new in-memory storage

Usage
InMemoryStorage$new()

Method set()

Store a value

Usage
InMemoryStorage$set(key, value)
Arguments
key

Storage key

value

Value to store


Method get()

Retrieve a value

Usage
InMemoryStorage$get(key)
Arguments
key

Storage key

Returns

Stored value or NULL


Method delete()

Delete a value

Usage
InMemoryStorage$delete(key)
Arguments
key

Storage key


Method exists()

Check if key exists

Usage
InMemoryStorage$exists(key)
Arguments
key

Storage key

Returns

Logical


Method keys()

List all keys

Usage
InMemoryStorage$keys()
Returns

Character vector of keys


Method clear()

Clear all data

Usage
InMemoryStorage$clear()

Method count()

Get count of stored items

Usage
InMemoryStorage$count()
Returns

Integer count


Method clone()

The objects of this class are cloneable with this method.

Usage
InMemoryStorage$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.


VectrixDB documentation built on Feb. 20, 2026, 5:09 p.m.