CACHE_KEY
CACHE_KEY = "device-ip-addresses"
Cache the collection of devices.
$collection : \duncan3dc\Sonos\Interfaces\Devices\CollectionInterface
__construct(\duncan3dc\Sonos\Interfaces\Devices\CollectionInterface $collection, \Psr\SimpleCache\CacheInterface $cache)
Create a new instance.
\duncan3dc\Sonos\Interfaces\Devices\CollectionInterface | $collection | The device collection to actually use |
\Psr\SimpleCache\CacheInterface | $cache | The cache object to use |
addDevice(\duncan3dc\Sonos\Interfaces\Devices\DeviceInterface $device) : $this
Add a device to this collection.
\duncan3dc\Sonos\Interfaces\Devices\DeviceInterface | $device | The device to add |
getDevices() : array<mixed,\duncan3dc\Sonos\Interfaces\Devices\DeviceInterface>
Get all of the devices on the current network