Skip to content

Added support for Laravel 8 & 9 #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jun 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/vendor
/.idea
.DS_Store
.DS_Store
composer.lock
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Laravel Cache Memory

Laravel cache memory driver which use shared memory functions.
Laravel cache memory driver which use shared memory functions.

Shmop is an easy to use set of functions that allows PHP to read, write, create and delete Unix shared memory segments.

Expand All @@ -12,7 +12,7 @@ segment of memory that they can both read to and write from to communicate with
Require this package, with [Composer](https://getcomposer.org/), in the root directory of your project.

``` bash
$ composer require sanchescom/laravel-cache-memory
composer require sanchescom/laravel-cache-memory
```

### Laravel 5.x:
Expand All @@ -22,7 +22,7 @@ After updating composer, add the ServiceProvider to the providers array in `conf
```php
'providers' => [
...
Sanchescom\Cache\CacheServiceProvider::class,
Sanchescom\Cache\MemoryServiceProvider::class,
],
```

Expand All @@ -31,7 +31,7 @@ After updating composer, add the ServiceProvider to the providers array in `conf
After updating composer add the following lines to register provider in `bootstrap/app.php`

```php
$app->register(Sanchescom\Cache\CacheServiceProvider::class);
$app->register(Sanchescom\Cache\MemoryServiceProvider::class);
```

## Configuration
Expand Down
14 changes: 7 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@
}
],
"require": {
"php" : "^7.1",
"php" : "^7.3|^8.0",
"ext-shmop": "*",
"illuminate/support": "~5.5",
"illuminate/cache": "^5.5"
"illuminate/support": "^8.0|^9.0",
"illuminate/cache": "^8.0|^9.0"
},
"require-dev": {
"phpunit/phpunit" : "^7.0",
"squizlabs/php_codesniffer": "^2.3"
"phpunit/phpunit" : "^9.0",
"squizlabs/php_codesniffer": "^3.0"
},
"autoload": {
"psr-4": {
"Sanchescom\\Cache\\": "src/"
"Sanchescom\\": "src/"
}
},
"scripts": {
Expand All @@ -41,7 +41,7 @@
"extra": {
"laravel": {
"providers": [
"Sanchescom\\Cache\\CacheServiceProvider"
"Sanchescom\\Cache\\MemoryServiceProvider"
]
}
}
Expand Down
Loading
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy