interface InMemoryCacheFactory implements CacheFactory (View source)

Interface to be implemented by all cache factories that instantiate in-memory symfony cache adapters.

This allows the cache adapters to be used in conjunction with filesystem cache.

Methods

public
object|null
create(string $service, array $params = [])

Creates a new service instance.

from  Factory
public
CacheItemPoolInterface
createPsr6(string $service, array $params = [])

Create a PSR6-compliant cache adapter

Details

object|null create(string $service, array $params = [])

Creates a new service instance.

Parameters

string $service

The class name of the service.

array $params

The constructor parameters.

Return Value

object|null

The created service instances.

CacheItemPoolInterface createPsr6(string $service, array $params = [])

Create a PSR6-compliant cache adapter

Parameters

string $service
array $params

Return Value

CacheItemPoolInterface