ArrayCacheBackend
in package
implements
ICacheBackend
Information about the dummy cache backend.
Table of Contents
Interfaces
- ICacheBackend
- Information about a cache provider. Should not have any external dependencies.
Methods
- createProvider() : ArrayCacheProvider
- Creates a dummy cache provider.
- isAvailable() : bool
- Checks whether the driver is available and a provider can be made.
- parseDsn() : ArrayCacheProviderInfo
- Constructs a cache info instance from a dsn.
Methods
createProvider()
Creates a dummy cache provider.
public
createProvider(ArrayCacheProviderInfo $providerInfo) : ArrayCacheProvider
Parameters
- $providerInfo : ArrayCacheProviderInfo
-
Dummy provider info.
Return values
ArrayCacheProvider —Dummy provider instance.
isAvailable()
Checks whether the driver is available and a provider can be made.
public
isAvailable() : bool
Return values
bool —If true a provider can be made, if false a required extension is missing.
parseDsn()
Constructs a cache info instance from a dsn.
public
parseDsn(string|array<string, string|int> $dsn) : ArrayCacheProviderInfo
ArrayCache has no parameters that can be controlled using the DSN.
Parameters
- $dsn : string|array<string, string|int>
-
DSN with provider information.
Return values
ArrayCacheProviderInfo —Dummy provider info instance.