Redis笔记

手动启动服务器

redis-server /user/local/etc/redis.conf

登录时自动启动

to have launchd start redis at login:
    ln -sfv /usr/local/opt/redis/*.plist ~/Library/LaunchAgents
Then to load redis now:
    launchctl load ~/Library/LaunchAgents/homebrew.mxcl.redis.plist

批量删除与通配符匹配的键。

在Shell提示符中

redis-cli keys 'sessions:*' | xargs redis-cli del
广告
将在 10 秒后关闭
bannerAds