io.chrisdavenport.rediculous

Members list

Concise view

Type members

Classlikes

final case class Redis[F[_], A](unRedis: Kleisli[F, RedisConnection[F], A])

Attributes

Companion:
object
Source:
Redis.scala
Graph
Supertypes
trait Product
trait Equals
class Object
trait Matchable
class Any
object Redis

Attributes

Companion:
class
Source:
Redis.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Redis.type
trait RedisArg[A]

Attributes

Companion:
object
Source:
RedisArg.scala
Graph
Supertypes
class Object
trait Matchable
class Any
object RedisArg

Attributes

Companion:
trait
Source:
RedisArg.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Source:
RedisCommands.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
trait RedisConnection[F[_]]

Attributes

Companion:
object
Source:
RedisConnection.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion:
trait
Source:
RedisConnection.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
trait RedisCtx[F[_]]

RedisCtx is the Context in Which RedisOperations operate.

RedisCtx is the Context in Which RedisOperations operate.

Attributes

Companion:
object
Source:
RedisCtx.scala
Graph
Supertypes
class Object
trait Matchable
class Any
object RedisCtx

Attributes

Companion:
trait
Source:
RedisCtx.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Indicates a Error while processing for Rediculous

Indicates a Error while processing for Rediculous

Attributes

Companion:
object
Source:
RedisError.scala
Graph
Supertypes
class Exception
class Throwable
class Object
trait Matchable
class Any
Known subtypes
object RedisError

Attributes

Companion:
trait
Source:
RedisError.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
final case class RedisPipeline[A](value: RedisTxState[Queued[A]])

For When you don't trust automatic pipelining.

For When you don't trust automatic pipelining.

ClusterMode: Multi Key Operations Will use for the first key provided.

pipeline method converts the Pipeline state to the Redis Monad. This will error if you pipeline and have not actually enterred any redis commands.

Attributes

Companion:
object
Source:
RedisPipeline.scala
Graph
Supertypes
trait Product
trait Equals
class Object
trait Matchable
class Any

Attributes

Companion:
class
Source:
RedisPipeline.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Attributes

Source:
RedisProtocol.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
trait RedisPubSub[F[_]]

A RedisPubSub Represent an connection or group of connections communicating to the pubsub subsystem of Redis.

A RedisPubSub Represent an connection or group of connections communicating to the pubsub subsystem of Redis.

Only one caller should be responsible for runMessages, but delegation of how to handle errors and what to do when the connection closes or what state it closes is left to the user so they can determine what to do.

Subscription commands are run synchronous to matching subscriptions. If your operations need to take a long time please delegate them into a queue for handling without holding up other messages being processed.

Attributes

Companion:
object
Source:
RedisPubSub.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion:
trait
Source:
RedisPubSub.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
trait RedisResult[+A]

Attributes

Companion:
object
Source:
RedisResult.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion:
trait
Source:
RedisResult.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
trait RedisStream[F[_]]

Attributes

Companion:
object
Source:
RedisStream.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion:
trait
Source:
RedisStream.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
final case class RedisTransaction[A](value: RedisTxState[Queued[A]])

Transactions Operate via typeclasses. RedisCtx allows us to abstract our operations into different types depending on the behavior we want. In the case of transactions that is RedisTransaction. These can be composed together via its Applicative instance to form a transaction consisting of multiple commands, then transacted via either multiExec or transact on the class.

Transactions Operate via typeclasses. RedisCtx allows us to abstract our operations into different types depending on the behavior we want. In the case of transactions that is RedisTransaction. These can be composed together via its Applicative instance to form a transaction consisting of multiple commands, then transacted via either multiExec or transact on the class.

In Cluster Mode the first key operation defines the node the entire Transaction will be sent to. Transactions are required to only operate on operations containing keys in the same keyslot, and users are required to hold this imperative or else redis will reject the transaction.

Attributes

Example:
import io.chrisdavenport.rediculous._
import cats.effect.Concurrent
val tx = (
 RedisCommands.ping[RedisTransaction],
 RedisCommands.del[RedisTransaction](List("foo")),
 RedisCommands.get[RedisTransaction]("foo"),
 RedisCommands.set[RedisTransaction]("foo", "value"),
 RedisCommands.get[RedisTransaction]("foo")
).tupled
def operation[F[_]: Concurrent] = tx.transact[F]
Companion:
object
Source:
RedisTransaction.scala
Graph
Supertypes
trait Product
trait Equals
class Object
trait Matchable
class Any

Attributes

Companion:
class
Source:
RedisTransaction.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
sealed trait Resp extends Product with Serializable

Attributes

Companion:
object
Source:
Resp.scala
Graph
Supertypes
trait Product
trait Equals
class Object
trait Matchable
class Any
Known subtypes
class Array
class Error
class Integer
object Resp

Attributes

Companion:
trait
Source:
Resp.scala
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Resp.type
object RespRaw

Attributes

Source:
RespRaw.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
RespRaw.type
object implicits

Attributes

Source:
implicits.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Types

type RedisIO[A] = Redis[IO, A]

Attributes

Source:
package.scala