Skip to content

Commit

Permalink
feat(cache): create local cache
Browse files Browse the repository at this point in the history
Signed-off-by: Elizabeth Danzberger <[email protected]>
  • Loading branch information
elzody committed Aug 15, 2024
1 parent a60c060 commit 2079d79
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/Service/TemplateFieldService.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
use OCP\Files\Template\Field;
use OCP\Files\Template\FieldType;
use OCP\Http\Client\IClientService;
use OCP\ICacheFactory;
use Psr\Log\LoggerInterface;

class TemplateFieldService {
Expand All @@ -22,8 +23,10 @@ public function __construct(
private CapabilitiesService $capabilitiesService,
private AppConfig $appConfig,
private IRootFolder $rootFolder,
private LoggerInterface $logger
private LoggerInterface $logger,
private ICacheFactory $cacheFactory
) {
$this->cache = $cacheFactory->createLocal('richdocuments_templates/');
}

/**
Expand Down

0 comments on commit 2079d79

Please sign in to comment.