CacheBackends
in package
FinalYes
Provides a registry of cache backends.
Table of Contents
Methods
- __construct() : mixed
- backend() : CacheBackend
- Creates a cache provider information class from a scheme.
- create() : CacheProvider
- Creates a cache provider from a DSN URI.
- parse() : CacheProviderInfo
- Parses a DSN URI into a provider info class.
- register() : void
- Registers a cache backend with a protocol scheme.
Methods
__construct()
public
__construct() : mixed
Tags
backend()
Creates a cache provider information class from a scheme.
public
static backend(string $scheme) : CacheBackend
Parameters
- $scheme : string
-
Cache protocol scheme.
Tags
Return values
CacheBackend —Cache backend information instance.
create()
Creates a cache provider from a DSN URI.
public
static create(string $uri) : CacheProvider
Parameters
- $uri : string
-
DSN URI.
Tags
Return values
CacheProvider —Connection instance.
parse()
Parses a DSN URI into a provider info class.
public
static parse(string $uri) : CacheProviderInfo
Parameters
- $uri : string
-
DSN URI.
Return values
CacheProviderInfo —Provider info instance.
register()
Registers a cache backend with a protocol scheme.
public
static register(string $scheme, string $className) : void
Parameters
- $scheme : string
-
URL scheme.
- $className : string
-
Fully qualified class name of the backend.