package ocsigen-start
Build not yet checkedInstall
dune-project
Dependency
Authors
Maintainers
Sources
md5=dfd00a648f0d5f64fcfc893427afc996
sha512=d7c77a9f9b617291ea8c49f4e77fcad8187c39e41d6cb2942ad1c8f45ba620ac261d25a3e75c1b2ce1fd429dad009abb45fab670542e722ab336dc681b99330a
doc/ocsigen-start.server/Os/User_proxy/index.html
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 User to avoid to do database requests, this last one is implementing only server side. Same for Request_cache which is also only server-side.
val cache : (Types.User.id, Types.User.t) Eliom.Cscache.tCache keeping userid and user information as a Types.user type.
val get_data_from_db : 'a -> Types.User.id -> 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 -> Types.User.id -> 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 : Types.User.id -> 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 : Types.User.id -> Types.User.t Lwt.tget_data_from_cache userid returns the user with ID userid saved in cache.