mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: s/\$redis/Discourse\.redis (#8431)
This commit also adds a rubocop rule to prevent global variables.
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
# This is a bottom up implementation of ActiveSupport::Cache::Store
|
||||
# this allows us to cleanly implement without using cache entries and version
|
||||
# support which we do not use, in tern this makes the cache as fast as simply
|
||||
# using `$redis.setex` with a more convenient API
|
||||
# using `Discourse.redis.setex` with a more convenient API
|
||||
#
|
||||
# It only implements a subset of ActiveSupport::Cache::Store as we make no use
|
||||
# of large parts of the interface.
|
||||
@@ -33,7 +33,7 @@ class Cache
|
||||
end
|
||||
|
||||
def redis
|
||||
$redis
|
||||
Discourse.redis
|
||||
end
|
||||
|
||||
def reconnect
|
||||
|
||||
Reference in New Issue
Block a user