mvaliolahi/cache-sync 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

mvaliolahi/cache-sync

Composer 安装命令:

composer require mvaliolahi/cache-sync

包简介

PHP Cache synchronization library.

README 文档

README

Latest Stable Version Total Downloads Build Status PHPStan

synchronize cache data using elegant syntax!

Install
    composer require mvaliolahi/cache-sync
Setup
    $cacheSync = new CacheSync(ArrayDriver::class);
  • note: ArrayDriver can be replaced with any implementation of 'Mvaliolahi\CacheSync\Contracts\CacheSyncDriver'.
Update single key inside array
        $data = [
            'name' => 'Meysam Valiolahi',
            'email' => 'mvaliolahi@gmail.com',
        ];

        $updatedData = $this->cacheSync
            ->data($data)
            ->change('name', 'Sohrab Valiolahi')
            ->change('email', 'sohrab_valiolahi@gmail.com')
            ->get()
Update Nested key inside array
        $data = [
            'data' => [
                'houses' => [
                    [
                        'id' => 101,
                        'location' => 'Dubai'
                    ],
                    [
                        'id' => 102,
                        'location' => 'Germany'
                    ]
                ]
            ]
        ];
        
        $this->cacheSync
            ->data($data)
            ->change('data.houses@id=101', [
                'location' => 'Iran'
            ])
            ->get()        
Persis changes
    $cacheSync->persistTo('users:user.1');

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-12-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固