Retrieves a cache adapter by name. If no adapter name is provided, uses the default registered adapter.
OptionaladapterName: TAdaptersThe name of the adapter to retrieve (optional). If not provided, uses the default adapter.
The requested cache adapter instance
Cache resolver contract for dynamically selecting and switching between cache adapters. Simplifies adapter management by providing a single interface to access registered cache implementations.
Typical usage: