cacheConnection
An underlying can-connect
connection used when fetching data from a cache.
DataInterface
A connection that provides access to a cache via DataInterface requests. Several behaviors including fall-through-cache expect this property.
Use
import {memoryStore, connect, QueryLogic} from "can";
var cacheConnection = memoryStore({
queryLogic: new QueryLogic({identity: ["id"]})
});
var todoConnection = connect([...behaviors...],{
cacheConnection: cacheConnection
});