Varnish Storage API

Poul-Henning Kamp phk at phk.freebsd.dk
Tue Jul 13 23:58:50 CEST 2010


In message <AE2FA490-99F8-4CFA-AD2A-27D6E518DF7B at crucially.net>, Artur Bergman 
writes:

>> I have skimmed the code base a to determine the API to use to insert  
>> data into
>> the cache but could not find it. 

There is no such API.

>Could you use a local http server and just pull from it?

That is a much better idea for a large number of reasons, in particular
testing & development:

Write a process which receives the data via M/C, when an object is
complete, it sends a HTTP request to Varnish which causes Varnish
fetch the object by treating the process as a backend.

I can all but guarantee you that this is the fastest and most
efficient way to make it work.

Poul-Henning

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.




More information about the varnish-dev mailing list