3#ifndef GEODE_CACHELOADER_H_
4#define GEODE_CACHELOADER_H_
28#include "Serializable.hpp"
29#include "internal/geode_globals.hpp"
74 virtual std::shared_ptr<Cacheable>
load(
75 Region& rp,
const std::shared_ptr<CacheableKey>& key,
76 const std::shared_ptr<Serializable>& aCallbackArgument) = 0;
An application plug-in that can be installed on a region.
Definition: CacheLoader.hpp:55
virtual std::shared_ptr< Cacheable > load(Region &rp, const std::shared_ptr< CacheableKey > &key, const std::shared_ptr< Serializable > &aCallbackArgument)=0
Loads a value.
virtual void close(Region &rp)
Called when the region containing this callback is destroyed, when the cache is closed.
This class manages subregions and cached data.
Definition: Region.hpp:95