| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Database.Redis.ManualCommands.Function
Synopsis
- functionDelete :: RedisCtx m f => ByteString -> m (f Status)
- functionDump :: RedisCtx m f => m (f ByteString)
- functionFlush :: RedisCtx m f => m (f Status)
- functionFlushOpts :: RedisCtx m f => FlushOpts -> m (f Status)
- functionKill :: RedisCtx m f => m (f Status)
- functionLoad :: RedisCtx m f => ByteString -> m (f ByteString)
- functionLoadReplace :: RedisCtx m f => ByteString -> m (f ByteString)
- data FunctionRestorePolicy
- data FunctionRestoreOpts
- defaultFunctionRestoreOpts :: FunctionRestoreOpts
- functionRestore :: RedisCtx m f => ByteString -> m (f Status)
- functionRestoreOpts :: RedisCtx m f => ByteString -> FunctionRestoreOpts -> m (f Status)
- functionStats :: RedisCtx m f => m (f Reply)
Documentation
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
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
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
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
data FunctionRestorePolicy Source #
Instances
| Show FunctionRestorePolicy Source # | |
Defined in Database.Redis.ManualCommands Methods showsPrec :: Int -> FunctionRestorePolicy -> ShowS # show :: FunctionRestorePolicy -> String # showList :: [FunctionRestorePolicy] -> ShowS # | |
| Eq FunctionRestorePolicy Source # | |
Defined in Database.Redis.ManualCommands Methods (==) :: FunctionRestorePolicy -> FunctionRestorePolicy -> Bool # (/=) :: FunctionRestorePolicy -> FunctionRestorePolicy -> Bool # | |
| RedisArg FunctionRestorePolicy Source # | |
Defined in Database.Redis.ManualCommands Methods | |
data FunctionRestoreOpts Source #
Instances
| Show FunctionRestoreOpts Source # | |
Defined in Database.Redis.ManualCommands.Function Methods showsPrec :: Int -> FunctionRestoreOpts -> ShowS # show :: FunctionRestoreOpts -> String # showList :: [FunctionRestoreOpts] -> ShowS # | |
| Eq FunctionRestoreOpts Source # | |
Defined in Database.Redis.ManualCommands.Function Methods (==) :: FunctionRestoreOpts -> FunctionRestoreOpts -> Bool # (/=) :: FunctionRestoreOpts -> FunctionRestoreOpts -> Bool # | |
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
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