(clean-timeout! now time-out)
clean all expired user data now : the time of now , should be System/currentTimeMiles time-out : time out peroid, use millsecond as unit.
clean all expired user data now : the time of now , should be System/currentTimeMiles time-out : time out peroid, use millsecond as unit.
(delete-user-data!)
delete user data, only side effect ,return nil
delete user data, only side effect ,return nil
(get-session-data token)
internal used only, return a atom
internal used only, return a atom
(get-user-data token)
the default method to get user data
the default method to get user data
(get-user-data!)
get user data and modified last visited time
get user data and modified last visited time
(periodical-clean-data! interval timeout)
clean all expired user data every interval millsecond
clean all expired user data every interval millsecond
(save-user-data! data)
sava user data , if token doesn't exist ,create a new one return data
sava user data , if token doesn't exist ,create a new one return data
(with-log-clean-timeout! now timeout)
clean all expired user data now : the time of now , should be System/currentTimeMiles time-out : time out peroid, use millsecond as unit. TODO : It's ugly here, to make the code better.
clean all expired user data now : the time of now , should be System/currentTimeMiles time-out : time out peroid, use millsecond as unit. TODO : It's ugly here, to make the code better.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close