for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Bmatovu\Ussd\Traits;
trait CacheStore
{
public function toCache(string $key, mixed $value): void
$this->cache->put("{$this->prefix}_{$key}", $value, $this->ttl);
}
public function fromCache(string $key, mixed $default = null): mixed
return $this->cache->get("{$this->prefix}_{$key}", $default);