stringifyParams<P extends Object> method

SyncCacheDelegate<D, P> stringifyParams<P extends Object>([
  1. String stringify(
    1. P params
    )?
])

Creates an adapter delegate that creates CacheFriend params using stringify function Receiver - Delegate with CacheFriend params e.g. the one that saves data to files and uses params as file names

Implementation

SyncCacheDelegate<D, P> stringifyParams<P extends Object>([ String Function(P params)? stringify ]) {
  return _StringAdapter(this, stringify ?? (p) => p.toString());
}