A client- and server-side multi-layer cache manager library