Dart Documentationclean_sync.serverDummyCache

DummyCache class

class DummyCache implements Cache {
 const DummyCache();
 put(key, val) => null;
 putIfAbsent(key, val()) => new Future.value(val());
 getEntry(key) => null;
 get(key) => null;
 clear(){}
}

Implements

Cache

Constructors

const DummyCache() #

Creates a new Object instance.

Object instances have no meaningful state, and are only useful through their identity. An Object instance is equal to itself only.

docs inherited from Object
const DummyCache();

Methods

dynamic clear() #

clear(){}

dynamic get(key) #

get(key) => null;

dynamic getEntry(key) #

getEntry(key) => null;

dynamic put(key, val) #

put(key, val) => null;

dynamic putIfAbsent(key, val()) #

putIfAbsent(key, val()) => new Future.value(val());