store static method

BondCache store(
  1. String storeName
)

Creates and returns a new CacheDriver instance with the specified storeName.

The storeName is used to uniquely identify different cache stores when using multiple cache drivers.

  • Parameter storeName The name of the cache store.
  • Returns: A new instance of CacheDriver associated with the specified storeName. Usage:
var myCacheDriver = Cache.store("myStore");

Implementation

static BondCache store(String storeName) =>
    sl<BondCache>(instanceName: storeName);