Cache files

A web framework in newLISP

Cache files

Postby cormullion » Wed Jan 13, 2010 3:17 pm

Where's a good place to put cache files? I want to cache some data from run to run, wonder where the best place to put it would be, and how to specify the address correctly?
cormullion
 
Posts: 2037
Joined: Tue Nov 29, 2005 8:28 pm
Location: latiitude 50N longitude 3W

Re: Cache files

Postby itistoday » Wed Jan 13, 2010 8:27 pm

cormullion wrote:Where's a good place to put cache files? I want to cache some data from run to run, wonder where the best place to put it would be,


Put it wherever you want, but outside of the dragonfly-framework folder.

and how to specify the address correctly?


Not sure what you mean.
Get your Objective newLISP groove on.
itistoday
 
Posts: 413
Joined: Sun Dec 02, 2007 5:10 pm
Location: I'm sitting right next to you. :)

Re: Cache files

Postby cormullion » Wed Jan 13, 2010 10:22 pm

OK, thanks. It's now in databases/, seems like a good place.

I was just asking in case there was some recommended way of specifying paths, such as (string DOCUMENT_ROOT "blah"), but don't worry, it works as I expected.

(I've been drawing graphs using canvas - http://unbalanced-parentheses.nfshost.com/dragonfly_twitter - wanted to keep data for longer than twitter.com keeps them, so they're now saved in a cache...)
cormullion
 
Posts: 2037
Joined: Tue Nov 29, 2005 8:28 pm
Location: latiitude 50N longitude 3W

Re: Cache files

Postby itistoday » Wed Jan 13, 2010 10:31 pm

cormullion wrote:(I've been drawing graphs using canvas - http://unbalanced-parentheses.nfshost.com/dragonfly_twitter - wanted to keep data for longer than twitter.com keeps them, so they're now saved in a cache...)


Nifty. :-)
Get your Objective newLISP groove on.
itistoday
 
Posts: 413
Joined: Sun Dec 02, 2007 5:10 pm
Location: I'm sitting right next to you. :)

Re: Cache files

Postby hilti » Thu Jan 14, 2010 4:58 pm

Pretty nice graph Cormullion!
--()o Dragonfly web framework for newLISP
http://dragonfly.uberberg.com
hilti
 
Posts: 138
Joined: Sun Apr 19, 2009 10:09 pm
Location: Hannover, Germany

Re: Cache files

Postby cormullion » Thu Jan 14, 2010 5:54 pm

:) The code's a bit straggly though! :)
cormullion
 
Posts: 2037
Joined: Tue Nov 29, 2005 8:28 pm
Location: latiitude 50N longitude 3W


Return to Dragonfly

Who is online

Users browsing this forum: No registered users and 1 guest