定制 demian/laravel-cache-rethinkdb 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

demian/laravel-cache-rethinkdb

Composer 安装命令:

composer require demian/laravel-cache-rethinkdb

包简介

RethinkDB Cache Driver for Laravel 5

README 文档

README

RethinkDB Cache Driver for Laravel 5. This package makes it easy to store cached data in RethinkDB.

This way you can also view them in real time.

TODO

  • More tests
  • Make a Query Builder, Eloquent for RethinkDB

Setup

Install RethinkDB.

  • brew install rethinkdb or
  • install Kitematic, search for rethinkdb and install the docker image.

Installation

You can install the package via composer:

composer require demian/laravel-cache-rethinkdb

In your config/app.php

'providers' => [
    ...
    Demian\RethinkDB\RethinkDBServiceProvider::class,
];

In your config/cache.php, create a new store:

'rethinkdb' => [
    'driver' => 'rethinkdb',
    'connection' => [
        'host' => env('RETHINKDB_HOST', '192.168.99.100'),
        'port' => env('RETHINKDB_PORT', '28015'),
        'database' => env('RETHINKDB_DATABASE', 'forge'),
        'table' => 'cache'
    ]
]

Do not forget to create the table

Usage

Cache::store('rethinkdb')->get('key_1');
Cache::store('rethinkdb')->put('key_1', 1);
Cache::store('rethinkdb')->increment('rest_1', 1);
Cache::store('rethinkdb')->decrement('rest_1', 1);

See: https://laravel.com/docs/5.3/cache

See: https://www.rethinkdb.com

统计信息

  • 总下载量: 22
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-10-31

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固