Skip to content

Commit

Permalink
Update keywords.
Browse files Browse the repository at this point in the history
  • Loading branch information
ruchit288 committed Aug 13, 2024
1 parent c892cde commit 7da6bc3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
9 changes: 6 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
{
"name": "vcian/pulse-active-sessions",
"description": "A Laravel Pulse card to show active user sessions",
"description": "A Laravel Pulse card to show active user session.",
"keywords": [
"pulse",
"laravel",
"pulse",
"laravel-pulse",
"pulse-active-sessions"
"active-session",
"active-user-session",
"pulse-active-session",
"session"
],
"homepage": "https://github.com/vcian/pulse-active-sessions",
"license": "MIT",
Expand Down
7 changes: 4 additions & 3 deletions src/Recorders/PulseActiveSessionRecorder.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,9 @@ private function countActiveRedisSession($authProvider): int
*/
private function countActiveMemcachedSession($authProvider): int
{
$memcachedStore = Cache::store('memcached')->getStore();
$memcached = $memcachedStore->getMemcached();
$memcached = Cache::store('memcached')
->getStore()
->getMemcached();
$memcacheData = $memcached->getAllKeys();
$response = Constant::ZERO;

Expand Down Expand Up @@ -294,7 +295,7 @@ private function currentApiDriver()
private function apiLoginCounts($apiDriver, $authProvider): int
{
$key = "active_session_" . $authProvider;

$response = match ($apiDriver) {
'sanctum' => $this->recordSanctum($authProvider),
'passport' => $this->recordPassport($authProvider),
Expand Down

0 comments on commit 7da6bc3

Please sign in to comment.