Liking cljdoc? Tell your friends :D

clj-rpc.user-data


*atom-token*clj

source

clean-timeout!clj

(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.
sourceraw docstring

clean-timeout-dataclj

(clean-timeout-data data now timeout)
source

delete-user-data!clj

(delete-user-data!)

delete user data, only side effect ,return nil

delete user data, only side effect ,return nil
sourceraw docstring

get-session-dataclj

(get-session-data token)

internal used only, return a atom

internal used only, return a atom
sourceraw docstring

get-user-dataclj

(get-user-data token)

the default method to get user data

the default method to get user data
sourceraw docstring

get-user-data!clj

(get-user-data!)

get user data and modified last visited time

get user data and modified last visited time
sourceraw docstring

nowclj

(now)
source

periodical-clean-data!clj

(periodical-clean-data! interval timeout)

clean all expired user data every interval millsecond

clean all expired user data every interval millsecond
sourceraw docstring

save-user-data!clj

(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
sourceraw docstring

session-dataclj

source

user-dbclj

source

user-storeclj

source

uuidclj

(uuid)

generate unique ID

generate unique ID
sourceraw docstring

with-log-clean-timeout!clj

(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. 
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close