On 2005.06.28, Bas Scheffers <[EMAIL PROTECTED]> wrote:
> I have never use ns_cache before, but it seems to me there is no way to
> store something in the cache from Tcl, is that the case? Would it be
> possible to implement?

See the stand-alone nscache module.  I have NO idea why this isn't part
of the AOLserver core ... unless folks really object, I think we should
fold the nscache module in.

> I was thinking that because each item has a timeout, this could be a
> perfect mechanism to implement sessions in AOLserver. Just have a cache
> named "sessions" and each session is one entry as ns_set. On every
> request, just reset the timeout. Or is that a crazy idea?

Not crazy at all.  I think of nscache as a specialized NSV that has an
upper bound to either size or age.

-- Dossy

--
Dossy Shiobara                       mail: [EMAIL PROTECTED]
Panoptic Computer Network             web: http://www.panoptic.com/
  "He realized the fastest way to change is to laugh at your own
    folly -- then you can let go and quickly move on." (p. 70)


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.

Reply via email to