This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-01-02
Channels
- # babashka (117)
- # babashka-sci-dev (6)
- # beginners (34)
- # biff (2)
- # calva (7)
- # clj-kondo (27)
- # clojure (6)
- # clojure-dev (8)
- # clojure-europe (41)
- # clojure-israel (1)
- # clojure-nl (1)
- # clojure-norway (2)
- # clojure-uk (1)
- # clojurescript (22)
- # cursive (3)
- # datascript (12)
- # dev-tooling (4)
- # emacs (13)
- # hyperfiddle (60)
- # introduce-yourself (8)
- # joyride (9)
- # lsp (46)
- # malli (3)
- # mranderson (75)
- # off-topic (40)
- # pathom (9)
- # pedestal (4)
- # reagent (11)
- # reitit (18)
- # releases (2)
- # shadow-cljs (81)
- # squint (18)
Multi-part[0] question: I'm writing a multiplayer web-client game (a sort of MUSH actually), and I currently have player-state in-memory, and write it to xtdb when a player's websocket closes. Q3. Having a LRU (or maybe TTL) cache of the player-state seems desirable. I've seen core.cache, but my use-case would require a hook that runs when an item is dropped from the cache (so I can write it to the db). Is there a way to do that (without forking core.cache) I'm not seeing, or another library that's more appropriate (or should I just roll my own; doesn't seem too time-consuming, but maybe I'm underestimating)
0. Also multi-channel: I have three fairly intertwined questions, with the first two seeming most appropriate for #C03S1L9DN and the third firmly in #C03S1KBA2 territory. Apologies for not managing to decomplect them, but I don't see how, without losing important context.