SilverStripe\S3\Cache\ContentCache
Captures local files for immediate access, saving unnecessary back-end requests
Synopsis
class ContentCache
implements
ContentWarmer
{
- // members
- protected CacheInterface $locationCache = NULL;
- protected array $fileCache = ;
- // methods
- public void getLocationCache()
- public void setLocationCache()
- public void warmFromPath()
- public $this warmFromString()
- public $this warmFromStream()
- protected string getStreamAsFile()
- protected string createTempFile()
- public void set()
- public void get()
- public void delete()
- public void clear()
- public void getMultiple()
- public void setMultiple()
- public void deleteMultiple()
- public void has()
Hierarchy
Implements
Members
protected
- $fileCache
—
array
Cache of local temp files sent to the backend, keyed by SHA1 - $locationCache
—
Psr\SimpleCache\CacheInterface
Backend cache for caching file paths
Methods
protected
- createTempFile() — Create a new temp file in case this is not available
- getStreamAsFile() — Get stream as a file
public
- clear()
- delete()
- deleteMultiple()
- get()
- getLocationCache()
- getMultiple()
- has()
- set()
- setLocationCache()
- setMultiple()
- warmFromPath() — Warm cache from a local path
- warmFromStream() — Warm from a stream.
- warmFromString() — Warm cache from local path