for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace GeneaLabs\LaravelModelCaching\Traits;
trait CachePrefixing
{
protected function getCachePrefix() : string
return "genealabs:laravel-model-caching:"
. $this->getDatabaseConnectionName() . ":"
. (config("laravel-model-caching.cache-prefix")
? config("laravel-model-caching.cache-prefix", "") . ":"
: "");
}
protected function getDatabaseConnectionName() : string
return $this->query->connection->getName();
query
GeneaLabs\LaravelModelCa...g\Traits\CachePrefixing