f-oris/easy-sdk-cache

Easy sdk cache component.

2.0.1 2021-04-24 15:07 UTC

This package is auto-updated.

Last update: 2024-10-24 23:42:43 UTC


README

Easy sdk Cache扩展组件包

Latest Stable Version Total Downloads Latest Unstable Version License

安装

通过composer引入扩展包

composer require f-oris/easy-sdk-cache:^2.0

Publish配置信息

php artisan vendor:publish --provider="Foris\Easy\Sdk\Cache\ServiceProvider"

使用

通过服务容器,获取Cache实例,按照easy-cache使用说明进行调用即可

<?php

$app = new \Foris\Easy\Sdk\Application();
$app->get('cache')->put('key', 'value', 600);

License

MIT License

Copyright (c) 2019-present F.oris us@f-oris.me