SilverStripe\S3\Adapter\PublicCacheAdapter
Synopsis
class PublicCacheAdapter
extends CacheAdapter
implements
PublicAdapter
{
- // Inherited constants from CacheAdapter
- const METADATA = 'metadata_';
- const HAS = 'has_';
- // Inherited members from CacheAdapter
- protected CacheInterface $metadataCache;
- protected ContentWarmer $contentCache;
- protected AdapterInterface $backend;
- // methods
- public PublicAdapter getBackend()
- public void setBackend()
- public void getPublicUrl()
- public void getVisibility()
- // Inherited methods from CacheAdapter
- public CacheInterface getMetadataCache()
- public void setMetadataCache()
- public ContentWarmer getContentCache()
- public $this setContentCache()
- public AdapterInterface getBackend()
- public $this setBackend()
- public void read()
- public void readStream()
- public void updateStream()
- public void writeStream()
- public void update()
- public void write()
- public void copy()
- public void rename()
- public void delete()
- public void getVisibility()
- public void setVisibility()
- public void getSize()
- public void getMimeType()
- public void getTimestamp()
- public array|false getMetadata()
- public bool has()
- public void deleteDir()
- public void createDir()
- public void listContents()
- protected void copyMetadata()
- public void deleteMetadata()
- protected array approximateMetadata()
- protected array|false|null getCachedMetadata()
- protected array|false getBackendMetadata()
- protected $this setCachedMetadata()
- protected bool|null getCachedHas()
- protected $this setCachedHas()
Hierarchy
Constants
Name | Value |
---|---|
METADATA | 'metadata_' |
HAS | 'has_' |
Members
protected
- $backend — League\Flysystem\AdapterInterface
- $contentCache
—
SilverStripe\S3\Cache\ContentWarmer
Cache to use for content (optional) - $metadataCache
—
Psr\SimpleCache\CacheInterface
Cache to use for metadata
Methods
public
- getBackend() — Get backend protected adapter
- getPublicUrl()
- getVisibility()
- setBackend()
Inherited from SilverStripe\S3\Adapter\CacheAdapter
protected
- approximateMetadata() — Build metadata from local path.
- copyMetadata() — Copy metadata from one path to another
- getBackendMetadata() — Get full metadata for the backend item.
- getCachedHas() — Check if cache knows if this file exists.
- getCachedMetadata() — Get metadata for the cache
- setCachedHas() — Tell cache that we know if this file exists
- setCachedMetadata() — Set metadata in cache
public
- copy()
- createDir()
- delete()
- deleteDir()
- deleteMetadata() — Remove metadata from a file we know doesn't exist anymore
- getBackend() — Failover adapter
- getContentCache() — Cache of local cached file paths.
- getMetadata() — Get metadata.
- getMetadataCache()
- getMimeType()
- getSize()
- getTimestamp()
- getVisibility()
- has() — Determine existence of this record in the cached backend.
- listContents()
- read()
- readStream()
- rename()
- setBackend() — Set failover adapter
- setContentCache()
- setMetadataCache()
- setVisibility()
- update()
- updateStream()
- write()
- writeStream()