[Cache V2 0/1] Add cache support in GrlNet



Hi.

This is a revamp of previous work to add caching support in network content.
This work add this in GrlNet library, totally transparent to user.

Actually, it is more than a revamp: libsoup has got caching support in latest
versions (so latest that almost no distro has it yet).

The guy who wrote this support in libsoup is a workmate, so after talking with
him I realize that in order to use the cache, i need to use a new unstable api.

As we want to be able to use GrlNet even with older libsoup versions (mainly
the ones that come right now in distros), I set up conditional compiling.

So if you have a libsoup library supporting cache, it will use it; else, it
will still works, but without cache.

The behaviour of cache is that by default is on (though user can turn it off),
uses a maximum size of 10Mb (though user can change it), and more important,
cache is not reused between executions: cache is only valid for current
execution. If you think we should provide an option so user can choose if they
want to make it persistent, just speak up.


		J.A.


Juan A. Suarez Romero (1):
  grl-net: Use libsoup cache

 configure.ac          |    4 +
 libs/net/Makefile.am  |    6 +
 libs/net/grl-net-wc.c |  384 ++++++++++++++++++++++++++++++++++++++++++++++++-
 libs/net/grl-net-wc.h |   11 ++-
 libs/net/wc-test.c    |    2 +-
 5 files changed, 399 insertions(+), 8 deletions(-)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]