Skip to content

Commit

Permalink
set default cache handle
Browse files Browse the repository at this point in the history
  • Loading branch information
idevz committed Jul 6, 2016
1 parent ffbec04 commit 2295f45
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vanilla/v/cache.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ local redis = LoadV('vanilla.v.cache.redis')
local shdict = LoadV('vanilla.v.cache.shdict')

local function __construct(self, handle)
local handle = handle or 'shared_dict'
local cache_instance
if handle == 'sh' or handle == 'shared_dict' then
self.cache_instance = shdict()
Expand Down

0 comments on commit 2295f45

Please sign in to comment.