Skip to content
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

the admin console can not display the data that input by others #56

Closed
zhangv opened this issue Aug 7, 2014 · 4 comments
Closed

the admin console can not display the data that input by others #56

zhangv opened this issue Aug 7, 2014 · 4 comments

Comments

@zhangv
Copy link

zhangv commented Aug 7, 2014

Hi, I just installed the phpRedisAdmin and something strange happened(not dig it yet. Just post it).
I use phpredis in my codebase, and these are what I have done:

$redis = new Redis();
$redis->pconnect(host,port);
$redis->set('aaa','bbb');

BUT, I cannot see the key(aaa) I just set in the admin console. (It's ok I use admin console to set something)

@zhangv
Copy link
Author

zhangv commented Aug 7, 2014

I can see the key exists in the keyspace in the info page.
Keyspace
Array
(
[db1] => Array
(
[keys] => 27
[expires] => 22
[avg_ttl] => 85175610
)

)

@erikdubbelboer
Copy link
Owner

Did you change anything in the phpRedisAdmin configuration? Have you selected the correct database?

@zhangv
Copy link
Author

zhangv commented Aug 10, 2014

Found it. Coz I did not select the db. Add this line in the config.inc.php solved my problem.
'db' => 1
Thanks!

@erikdubbelboer
Copy link
Owner

By default it uses db 0 which is also the default redis db.
https://github.com/ErikDubbelboer/phpRedisAdmin/blob/master/includes/common.inc.php#L75

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants