Skip to content

Commit

Permalink
Merge pull request #21 from mostafaznv/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
mostafaznv authored Jun 21, 2023
2 parents f5b4fee + 8152265 commit 0fdf2c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ Therefore, if you decide to use my packages, please kindly consider making a don
| method | Arguments | description |
|----------------------|-------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| setDriver | driver (type: `string`) | Specifies custom driver for cache entity |
| isQueueable | status (type: `bool`, default: 'true')<br>onConnection (type: `string`, default: '')<br>onQueue (type: `string`, default: '') | This option specifies whether the cache operation should be performed in the background or not.<br>**Note**: By using the `onConnection` and `onQueue` arguments, you have the ability to specify custom connection and queue names for each cache entity. |
| isQueueable | status (type: `bool`, default: 'true')<hr>onConnection (type: `string`, default: '')<hr>onQueue (type: `string`, default: '') | This option specifies whether the cache operation should be performed in the background or not.<br>**Note**: By using the `onConnection` and `onQueue` arguments, you have the ability to specify custom connection and queue names for each cache entity. |
| refreshAfterCreate | status (type: `bool`, default: `true`) | Specifies if the cache should refresh after create a record |
| refreshAfterUpdate | status (type: `bool`, default: `true`) | Specifies if the cache should refresh after update a record |
| refreshAfterDelete | status (type: `bool`, default: `true`) | Specifies if the cache should refresh after delete a record |
Expand Down
2 changes: 1 addition & 1 deletion src/Jobs/UpdateLaraCacheModelsList.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function __construct(private string $model)
$this->driver = config('laracache.driver') ?: config('cache.default');
$this->key = self::LARACACHE_MODELS_LIST;

$this->connection = config('laracache.queue.connection', 'default');
$this->connection = config('laracache.queue.connection', config('queue.default'));
$this->queue = config('laracache.queue.name', 'default');
}

Expand Down

0 comments on commit 0fdf2c6

Please sign in to comment.