CacheDriverRegistry class

Implementation of cache driver registry. Manages the registration and retrieval of cache drivers.

Implemented types

Constructors

CacheDriverRegistry()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getDefaultDriver() CacheDriver
Gets the current default driver.
override
getDefaultDriverName() String
Gets the name of the current default driver.
override
getDriver(String name) CacheDriver?
Gets a cache driver by name. Returns null if the driver is not registered.
override
getDriverNames() List<String>
Gets all registered driver names.
override
hasDriver(String name) bool
Checks if a driver is registered.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerDriver(String name, CacheDriver driver) → void
Registers a cache driver with the given name. Throws CacheException if the driver name is empty or already registered.
override
removeDriver(String name) → void
Removes a driver from the registry. Throws CacheException if the driver is not registered or is the default driver.
override
setDefaultDriver(String name) → void
Sets the default cache driver. Throws CacheException if the driver is not registered.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited