[Home] [Groups] - Message: [Prev in Group] [Next in Group]
17811: Re: [MUD-Dev] Persistent Worlds
[Full Header] [Plain Text]
From: J C Lawrence <claw@kanga.nu>
Newsgroups: nu.kanga.list.mud-dev
Date: Fri, 23 Feb 2001 10:53:25 -0800
References: [1] [2] <-newest
Organization: Kanga.Nu
On Fri, 23 Feb 2001 03:06:06 -0800
Ryan Rhodes <ryanshaerhodes@hotmail.com> wrote:
> For it to be really decoupled from the game though, you would need
> a way to count the object accesses in a generic fashion. I've
> never really understood this about "write your own" caching. Is
> there some generic, low-level way to "Trap" an object access?
I do it by intercepting the ObjectID->CacheEntry call. Objects only
store ObjectID's internally (that is how the DB and DB cache are
indexed), so every outside call or message is addressed to an
ObjectID, which then allows interception on dereferencing.
--
J C Lawrence claw@kanga.nu
---------(*) http://www.kanga.nu/~claw/
--=| A man is as sane as he is dangerous to his environment |=--
_______________________________________________
MUD-Dev mailing list
MUD-Dev@kanga.nu
https://www.kanga.nu/lists/listinfo/mud-dev