Module Os_user_proxy
This module implements a cache of user using Eliom_cscache which allows to keep synchronized the cache between the client and the server. Even if there is a cache implemented in Os_user to avoid to do database requests, this last one is implementing only server side. Same for Os_request_cache which is also only server-side.
val cache : (Os_types.User.id, Os_types.User.t) Eliom_cscache.tCache keeping userid and user information as a Os_types.user type.
val get_data_from_db : 'a -> Os_types.User.id -> Os_types.User.t Lwt.tget_data_from_db myid_o userid returns the user which has ID userid. For the moment, myid_o is not used but it will be use later.
Data comes from the database, not the cache.
val get_data_from_db_for_client :
'a ->
Os_types.User.id ->
Os_types.User.t Lwt.tget_data_from_db_for_client myid_o userid returns the user which has ID userid. For the moment, myid_o is not used but it will be use later.
Data comes from the database, not the cache.
val get_data : Os_types.User.id -> Os_types.User.t Lwt.tget_data userid returns the user which has ID userid. For the moment, myid_o is not used but it will be use later.
Data comes from the database, not the cache.
val get_data_from_cache : Os_types.User.id -> Os_types.User.t Lwt.tget_data_from_cache userid returns the user with ID userid saved in cache.