Skip to content

Framework

Redis

Redis is a library to integrate RediStack with Vapor. It provides a number of extensions to both make configuring a Vapor application with Redis simple and to provide Redis implementations for Vapor protocols, such as the cache.

Overview

For more details, check out the docs.

Topics

Protocols

  • RedisCacheDecoder
    A decoder whose input is convertible from a RESPValue loaded from Redis. Directly based on Combine.TopLevelDecoder but can’t extend it because Combine isn’t available on Linux.
  • RedisCacheEncoder
    An encoder whose output is convertible to a RESPValue for storage in Redis. Directly based on Combine.TopLevelEncoder but can’t extend it because Combine isn’t available on Linux.
  • RedisSessionsDelegate
    A delegate object that controls key behavior of an Application.Redis.Sessions driver.

Structures

  • RedisConfiguration
    Configuration for connecting to a Redis instance
  • RedisID
    A type-safe representation of a String representing individual identifiers of separate Redis connections and configurations.

Extended Modules