# Functions
NewMightyMapBadgerStorage creates a new thread-safe storage implementation using BadgerDB.
No description provided by the author
No description provided by the author
NewMightyMapSwissStorage creates a new thread-safe map storage implementation using swiss.Map with optional configuration through OptionFuncSwiss functions.
WithBlockCacheSize sets the size of the block cache in bytes.
WithBlockSize sets the size of each block in the LSM tree in bytes.
WithCompression enables or disables data compression using ZSTD in Badger.
WithDefaultCapacity returns an OptionFuncSwiss that sets the initial capacity of the swiss.Map.
WithDetectConflicts enables or disables conflict detection in Badger.
WithEncryptionKey sets the encryption key for the Badger database.
WithEncryptionKeyRotationDuration sets the rotation duration for the encryption key in Badger.
WithGcInterval sets the interval for garbage collection in Badger.
WithGcPercentage sets the percentage of value log space to be collected during garbage collection.
WithIndexCacheSize sets the size of the LSM tree cache in bytes.
WithLoggingLevel sets the logging level for Badger.
WithMemoryStorage enables or disables in-memory storage.
WithMemTableSize sets the size of the memtable in bytes.
WithMetricsEnabled enables or disables metrics collection in Badger.
WithNumCompactors sets the number of compaction workers in Badger.
WithNumVersionsToKeep specifies the number of versions to keep per key.
WithRedisAddr sets the Redis server address (host:port) for the client connection.
WithRedisDB selects the Redis logical database to use.
WithRedisExpire sets the expiration time for the Redis key-value pairs.
WithRedisMaxRetries sets the maximum number of retries for failed Redis operations.
WithRedisMock (not implemented) sets the Redis client to use a mock implementation.
WithRedisPassword sets the password for Redis authentication.
WithRedisPoolSize sets the maximum number of socket connections in the Redis connection pool.
WithRedisPrefix sets a global key prefix for all Redis operations.
WithRedisTimeout sets the timeout duration for Redis client operations.
WithRedisTLS enables or disables TLS/SSL encryption for Redis connections.
WithRedisTLSConfig sets custom TLS configuration for Redis connections.
WithSyncWrites enables or disables synchronous writes in Badger.
WithTempDir sets the directory for storing the Badger database files.
WithValueThreshold sets the threshold for value storage in Badger.
# Interfaces
No description provided by the author
# Type aliases
OptionFuncBadger is a function type that modifies badgerOpts configuration.
No description provided by the author
OptionFuncSwiss is a function type that modifies swissOpts configuration.