hedis
Safe HaskellNone
LanguageHaskell2010

Database.Redis.ManualCommands.Function

Synopsis

Documentation

functionDelete Source #

Arguments

:: RedisCtx m f 
=> ByteString

Library name.

-> m (f Status) 

Deletes a library and its functions (https://redis.io/commands/function-delete).

Deletes the library named by the argument together with all functions it contains.

O(1)

Since Redis 7.0.0

functionDump :: RedisCtx m f => m (f ByteString) Source #

Dumps all libraries into a serialized binary payload (https://redis.io/commands/function-dump).

Serializes all loaded libraries into a binary payload that can later be used with functionRestore.

O(N) where N is the number of functions.

Since Redis 7.0.0

functionFlush :: RedisCtx m f => m (f Status) Source #

Deletes all libraries and functions (https://redis.io/commands/function-flush).

Removes every library currently loaded into Redis.

O(N) where N is the number of functions deleted.

Since Redis 7.0.0

functionFlushOpts Source #

Arguments

:: RedisCtx m f 
=> FlushOpts

Flush mode.

-> m (f Status) 

Deletes all libraries and functions (https://redis.io/commands/function-flush).

Removes every library currently loaded into Redis using the requested flushing mode.

O(N) where N is the number of functions deleted.

Since Redis 7.0.0

functionKill :: RedisCtx m f => m (f Status) Source #

Terminates a function during execution (https://redis.io/commands/function-kill).

Terminates the currently running function, if it is marked as killable by Redis.

O(1)

Since Redis 7.0.0

functionLoad Source #

Arguments

:: RedisCtx m f 
=> ByteString

Library source code.

-> m (f ByteString) 

Creates a library (https://redis.io/commands/function-load).

Loads a new function library and returns its library name.

O(N) where N is the number of bytes in the function's source code.

Since Redis 7.0.0

functionLoadReplace Source #

Arguments

:: RedisCtx m f 
=> ByteString

Library source code.

-> m (f ByteString) 

Creates a library, replacing an existing one with the same name (https://redis.io/commands/function-load).

Loads a function library and replaces an existing library with the same name.

O(N) where N is the number of bytes in the function's source code.

Since Redis 7.0.0

functionRestore Source #

Arguments

:: RedisCtx m f 
=> ByteString

Serialized libraries payload.

-> m (f Status) 

Restores all libraries from a payload (https://redis.io/commands/function-restore).

Restores all libraries from a payload previously returned by functionDump.

O(N) where N is the number of functions restored.

Since Redis 7.0.0

functionRestoreOpts Source #

Arguments

:: RedisCtx m f 
=> ByteString

Serialized libraries payload.

-> FunctionRestoreOpts

Restore options.

-> m (f Status) 

Restores all libraries from a payload (https://redis.io/commands/function-restore).

Restores all libraries from a payload previously returned by functionDump, optionally selecting the restore policy.

O(N) where N is the number of functions restored.

Since Redis 7.0.0

functionStats :: RedisCtx m f => m (f Reply) Source #

Returns information about a function during execution (https://redis.io/commands/function-stats).

Returns execution statistics and runtime information for the function engine.

O(1)

Since Redis 7.0.0