{"id":17696880,"url":"https://github.com/datashaman/elasticsearch-cache","last_synced_at":"2025-03-31T00:40:57.737Z","repository":{"id":66709835,"uuid":"64145782","full_name":"datashaman/elasticsearch-cache","owner":"datashaman","description":"Laravel-oriented implementation of an Elasticsearch-based cache store.","archived":false,"fork":false,"pushed_at":"2016-08-01T10:58:13.000Z","size":17,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-06T05:43:46.726Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/datashaman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-07-25T15:22:53.000Z","updated_at":"2017-06-27T10:34:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"8f39c28f-c6fe-49ce-a48c-b6fba2238d9e","html_url":"https://github.com/datashaman/elasticsearch-cache","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datashaman%2Felasticsearch-cache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datashaman%2Felasticsearch-cache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datashaman%2Felasticsearch-cache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datashaman%2Felasticsearch-cache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/datashaman","download_url":"https://codeload.github.com/datashaman/elasticsearch-cache/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246399800,"owners_count":20770907,"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-24T14:45:34.855Z","updated_at":"2025-03-31T00:40:57.719Z","avatar_url":"https://github.com/datashaman.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# datashaman/elasticsearch-cache\n\nLaravel-oriented implementation of an Elasticsearch-based cache store.\n\n[![Build Status](https://travis-ci.org/datashaman/elasticsearch-cache.svg?branch=master)](https://travis-ci.org/datashaman/elasticsearch-cache)\n[![StyleCI](https://styleci.io/repos/61363628/shield?style=flat)](https://styleci.io/repos/61363628)\n[![Code Climate](https://codeclimate.com/github/datashaman/elasticsearch-cache/badges/gpa.svg)](https://codeclimate.com/github/datashaman/elasticsearch-cache)\n[![Test Coverage](https://codeclimate.com/github/datashaman/elasticsearch-cache/badges/coverage.svg)](https://codeclimate.com/github/datashaman/elasticsearch-cache/coverage)\n\n## Installation\n\nInstall the package from packagist.org by editing composer.json to include the following (only published on github for now):\n\n    {\n        \"repositories\": [\n            {\n                \"type\": \"vcs\",\n                \"url\": \"https://github.com/datashaman/elasticsearch-cache\"\n            }\n        ],\n        \"require\": {\n            \"datashaman/elasticsearch-cache\": \"dev-master\"\n        }\n    }\n\nRun `composer update` to install the latest package.\n\n*NB* This is currently *ALPHA* quality software. Not for production use yet.\n\n## Usage\n\nReplace the `CacheServiceProvider` in `config/app.php`:\n\n    \n    'providers' =\u003e [\n        ...\n        'Illuminate\\Broadcasting\\BroadcastServiceProvider',\n        //'Illuminate\\Cache\\CacheServiceProvider',\n        'Datashaman\\Elasticsearch\\Cache\\ElasticsearchCacheServiceProvider',\n        'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider',\n        ...\n    ]\n\nCreate an index to store the cache:\n\n    php artisan cache:index [index]\n\nIndex name is *laravel-cache* by default. Ensure that the laravel `prefix` matches `config/cache.php`.\n\nIn `.env` file, set `CACHE_DRIVER` to *elasticsearch*, and add the following to `config/cache.php`:\n\n    \n\t'stores' =\u003e [\n        ...\n\t\t'elasticsearch' =\u003e [\n            'driver' =\u003e 'elasticsearch',\n            'client' =\u003e [                   # Optional Elasticsearch client config\n            ],\n        ],\n        ...\n    ]\n\nThen use the `Cache` facade as you would normally.\n\n## License\n\nThis package is licensed under the Apache2 license, summarized below:\n\nCopyright (c) 2016 datashaman \u003cmarlinf@datashaman.com\u003e\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatashaman%2Felasticsearch-cache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatashaman%2Felasticsearch-cache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatashaman%2Felasticsearch-cache/lists"}