public function cache(Store $cache = null)
{
if (!$this->usesCachedClipboard()) {
throw new RuntimeException('To use caching, you must use an instance of CachedClipboard.');
}
$cache = $cache ?: $this->resolve(CacheRepository::class)->getStore();
$this->clipboard->setCache($cache);
return $this;
}