close abstract method

Future<void> close()

Close all connections, causing all future operations to throw.

This method frees resources used by this CacheProvider, if backed by a remote service like redis, this should close the connection.

Calling close multiple times does not throw. But after this has returned all future operations should throw StateError.

Implementation

Future<void> close();