{"id":16007849,"url":"https://github.com/cornernote/yii2-cache-behavior","last_synced_at":"2025-03-17T20:31:07.689Z","repository":{"id":56958120,"uuid":"68792574","full_name":"cornernote/yii2-cache-behavior","owner":"cornernote","description":"Cache behavior for Yii2.","archived":false,"fork":false,"pushed_at":"2018-06-29T00:47:02.000Z","size":42,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T03:42:20.260Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cornernote.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-21T07:41:30.000Z","updated_at":"2018-06-28T07:56:53.000Z","dependencies_parsed_at":"2022-08-21T04:30:11.292Z","dependency_job_id":null,"html_url":"https://github.com/cornernote/yii2-cache-behavior","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cornernote%2Fyii2-cache-behavior","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cornernote%2Fyii2-cache-behavior/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cornernote%2Fyii2-cache-behavior/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cornernote%2Fyii2-cache-behavior/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cornernote","download_url":"https://codeload.github.com/cornernote/yii2-cache-behavior/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243878494,"owners_count":20362433,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-08T12:21:39.458Z","updated_at":"2025-03-17T20:31:07.396Z","avatar_url":"https://github.com/cornernote.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Yii2 Cache Behavior\n\n[![Latest Version](https://img.shields.io/github/tag/cornernote/yii2-cache-behavior.svg?style=flat-square\u0026label=release)](https://github.com/cornernote/yii2-cache-behavior/tags)\n[![Software License](https://img.shields.io/badge/license-BSD-brightgreen.svg?style=flat-square)](LICENSE.md)\n[![Build Status](https://img.shields.io/travis/cornernote/yii2-cache-behavior/master.svg?style=flat-square)](https://travis-ci.org/cornernote/yii2-cache-behavior)\n[![Coverage Status](https://img.shields.io/scrutinizer/coverage/g/cornernote/yii2-cache-behavior.svg?style=flat-square)](https://scrutinizer-ci.com/g/cornernote/yii2-cache-behavior/code-structure)\n[![Quality Score](https://img.shields.io/scrutinizer/g/cornernote/yii2-cache-behavior.svg?style=flat-square)](https://scrutinizer-ci.com/g/cornernote/yii2-cache-behavior)\n[![Total Downloads](https://img.shields.io/packagist/dt/cornernote/yii2-cache-behavior.svg?style=flat-square)](https://packagist.org/packages/cornernote/yii2-cache-behavior)\n\nCache behavior for Yii2.\n\n\n## Installation\n\nThe preferred way to install this extension is through [composer](http://getcomposer.org/download/).\n\nEither run\n\n```\n$ composer require cornernote/yii2-cache-behavior \"*\"\n```\n\nor add\n\n```\n\"cornernote/yii2-cache-behavior\": \"*\"\n```\n\nto the `require` section of your `composer.json` file.\n\n\n## Usage\n\nIn your ActiveRecord class:\n\n```php\npublic function behaviors() {\n    return [\n        \\cornernote\\cachebehavior\\CacheBehavior::className(),\n        // or\n        [\n            'class' =\u003e \\cornernote\\cachebehavior\\CacheBehavior::className(),\n            'cache' =\u003e 'cache',\n            'backupCache' =\u003e 'fileCache',\n        ],\n    ];\n}\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcornernote%2Fyii2-cache-behavior","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcornernote%2Fyii2-cache-behavior","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcornernote%2Fyii2-cache-behavior/lists"}