add skynet.cache lib

This commit is contained in:
云风
2013-12-17 19:18:42 +08:00
parent 8e031c1b21
commit 45196be66a
2 changed files with 102 additions and 12 deletions

View File

@@ -10,6 +10,9 @@ local pcall = pcall
local proto = {}
local skynet = {}
-- code cache
skynet.cache = require "skynet.codecache"
function skynet.register_protocol(class)
local name = class.name
local id = class.id