Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
Redis User Session Storage
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WP Plugins
Redis User Session Storage
Merge requests
!3
WIP: Add tests
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
WIP: Add tests
add/tests
into
develop
Overview
0
Commits
4
Pipelines
4
Changes
4
Closed
Erick Hitter
requested to merge
add/tests
into
develop
6 years ago
Overview
0
Commits
4
Pipelines
4
Changes
4
Expand
0
0
Merge request reports
Viewing commit
e8c6e567
Prev
Next
Show latest version
4 files
+
36
−
20
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
e8c6e567
Begin tests
· e8c6e567
Erick Hitter
authored
6 years ago
inc/class-wp-redis-user-session-storage.php
+
9
−
0
Options
@@ -269,6 +269,15 @@ class WP_Redis_User_Session_Storage extends WP_Session_Tokens {
@@ -269,6 +269,15 @@ class WP_Redis_User_Session_Storage extends WP_Session_Tokens {
protected
function
get_key
()
{
protected
function
get_key
()
{
return
$this
->
prefix
.
':'
.
$this
->
user_id
;
return
$this
->
prefix
.
':'
.
$this
->
user_id
;
}
}
/**
* Is Redis connected?
*
* @return bool
*/
public
function
redis_connected
()
{
return
$this
->
redis_connected
;
}
}
}
/**
/**
Loading