async update cache

This commit is contained in:
Kevin Lynx 2013-07-03 17:53:13 +08:00
parent 530d1ce8c5
commit bb2cbfcc2d

View File

@ -134,6 +134,7 @@ spawn_update(Type) ->
async_update(Type, From) -> async_update(Type, From) ->
Start = now(), Start = now(),
io:format("async update cache ~p start~n", [Type]),
Ret = do_update(Type), Ret = do_update(Type),
From ! {enter_cache, Type, Ret}, From ! {enter_cache, Type, Ret},
io:format("async update cache ~p done used ~p ms~n", io:format("async update cache ~p done used ~p ms~n",