/[Apache-SVN]/httpd/httpd/trunk/include/ap_socache.h
ViewVC logotype

Log of /httpd/httpd/trunk/include/ap_socache.h

Parent Directory Parent Directory | Revision Log Revision Log


Links to HEAD: (view) (annotate)
Sticky Revision:

Revision 726059 - (view) (annotate) - [select for diffs]
Modified Fri Dec 12 15:56:15 2008 UTC (11 months, 2 weeks ago) by jorton
File length: 7163 byte(s)
Diff to previous 724745 (colored)
socache API tweaks based on chrisd's review:

* include/ap_socache.h (ap_socache_provider_t::store): Take a pool.
  (ap_socache_provider_t::retrieve): Guarantee APR_NOTFOUND for a
  "not found" result.
  (ap_socache_provider_t::remove): Return an apr_status_t.

* modules/cache/mod_socache_dc.c, modules/cache/mod_socache_dbm.c,
  modules/cache/mod_socache_shmcb,
  modules/cache/mod_socache_memcache.c: Adjust accordingly.

* modules/ssl/ssl_scache.c (ssl_scache_store): Pass pool to
  sesscache->store.

Revision 724745 - (view) (annotate) - [select for diffs]
Modified Tue Dec 9 15:19:08 2008 UTC (11 months, 2 weeks ago) by jorton
File length: 6930 byte(s)
Diff to previous 724723 (colored)
* include/ap_socache.h: Use C++ safety wrappers, and rename ->delete
  to ->remove since the former is a C++ reserved word.

* modules/ssl/ssl_scache.c (ssl_scache_remove): Update accordingly.

Revision 724723 - (view) (annotate) - [select for diffs]
Modified Tue Dec 9 14:52:59 2008 UTC (11 months, 2 weeks ago) by jorton
File length: 6861 byte(s)
Diff to previous 724682 (colored)
* include/ap_socache.h: Define AP_SOCACHE_DEFAULT_PROVIDER as a
  default provider name, to allow consumers to use a default provider
  if not configured otherwise.

* modules/cache/mod_socache_shmcb.c (register_hooks): Register shmcb
  as the default provider.

Revision 724682 - (view) (annotate) - [select for diffs]
Modified Tue Dec 9 13:11:45 2008 UTC (11 months, 2 weeks ago) by jorton
File length: 6784 byte(s)
Diff to previous 664232 (colored)
Reduce config overhead for use of socache interface by allowing
default paths to be used if none are configured:

* include/ap_socache.h (ap_socache_provider_t::create):
  Allow arg to be NULL to force use of defaults.
  (ap_socache_provider_t::init): Rename 'namespace' parameter to
  'cname' and restrict to allow use in filesystem paths.
  
* modules/cache/mod_socache_dbm.c (socache_dbm_create, 
  socache_dbm_init),
  modules/cache/mod_socache_shmcb.c (socache_shmcb_create, 
  socache_shmcb_init): 
  Default to use of runtimedir-relative paths if no
  explicit path is configured.

Revision 664232 - (view) (annotate) - [select for diffs]
Modified Sat Jun 7 01:13:10 2008 UTC (17 months, 2 weeks ago) by wrowe
File length: 6477 byte(s)
Copied from: httpd/httpd/trunk/modules/cache/ap_socache.h revision 664156
Diff to previous 646415 (colored)
ap_ namespace, a dead giveaway that this information should reside
in the general include\ directory

Revision 646415 - (view) (annotate) - [select for diffs]
Modified Wed Apr 9 16:13:02 2008 UTC (19 months, 2 weeks ago) by jorton
Original Path: httpd/httpd/trunk/modules/cache/ap_socache.h
File length: 6477 byte(s)
Diff to previous 646180 (colored)
* modules/cache/ap_socache.h: Doxify.

Revision 646180 - (view) (annotate) - [select for diffs]
Modified Wed Apr 9 02:23:48 2008 UTC (19 months, 2 weeks ago) by fuankg
Original Path: httpd/httpd/trunk/modules/cache/ap_socache.h
File length: 4758 byte(s)
Diff to previous 645978 (colored)
* Fix eol-style

Revision 645978 - (view) (annotate) - [select for diffs]
Modified Tue Apr 8 15:47:48 2008 UTC (19 months, 2 weeks ago) by jorton
Original Path: httpd/httpd/trunk/modules/cache/ap_socache.h
File length: 4758 byte(s)
Diff to previous 645924 (colored)
Adjust socache init interface to take sizing hints, and namespace tag
for memcache:

* modules/cache/ap_socache.h (struct ap_socache_hints): New structure.
  Change init callback to take namespace string and hints structure pointer.

* modules/cache/mod_socache_dc.c (socache_dc_init): Adjust accordingly.

* modules/cache/mod_socache_dbm.c (struct ap_socache_instance_t): Rename
  timeout field to expiry_interval.
  (socache_dbm_init, socache_dbm_create): Take expiry interval from
  hints rather than hard-code to 30.
  (socache_dbm_expire): Update for timeout field rename.

* modules/cache/mod_socache_shmcb.c (socache_shmcb_init): Adjust for
  hints and namespace; adjust subcache index sizing heuristics to use
  passed-in hints.

* modules/cache/mod_socache_memcache.c (struct ap_socache_instance_t):
  Add tag, taglen fields.
  (socache_mc_init): Store the passed-in namespace in instance
  structure.
  (mc_session_id2sz): Adjust to not take context, use configured
  tag as string prefix, and not use a return value.
  (socache_mc_store, socache_mc_retrieve, socache_mc_remove):
  Adjust for mc_session_id2sz interface changes.

* modules/ssl/ssl_scache.c (ssl_scache_init): Pass namespace and hints
  to socache provider init function.

Revision 645924 - (view) (annotate) - [select for diffs]
Modified Tue Apr 8 13:49:52 2008 UTC (19 months, 2 weeks ago) by jorton
Original Path: httpd/httpd/trunk/modules/cache/ap_socache.h
File length: 4157 byte(s)
Diff to previous 645844 (colored)
* modules/cache/ap_socache.h: Add ap_socache_instance_t object type.
  Adjust the provider interface to use this instance type throughout.

* modules/cache/mod_socache_dbm.c,
  modules/cache/mod_socache_memcache.c,
  modules/cache/mod_socache_shmcb.c,
  modules/cache/mod_socache_dc.c: Adjust all implementations to 
  define the instance object in place of the "struct context", and
  to take this object directly in the provider interface.

Revision 645844 - (view) (annotate) - [select for diffs]
Added Tue Apr 8 10:47:04 2008 UTC (19 months, 2 weeks ago) by jorton
Original Path: httpd/httpd/trunk/modules/cache/ap_socache.h
File length: 3953 byte(s)
Session cache interface redesign, Part 8:

Abstract out the mod_ssl session caching interface into a separate set
of modules, mod_socache_*.

* modules/cache/ap_socache.h: New file.

* modules/cache/config.m4: Copy CHECK_DISTCACHE from ../ssl/config.m4; 
  add new socache modules.

* modules/cache/mod_socache_dbm.c: Copied from ../ssl/ssl_scache_dbm.c.
  s/ssl_scache_/socache_/; add module structure and register_hooks.

* modules/cache/mod_socache_shmcb.c: Copied from ../ssl/ssl_scache_shmcb.c.
  s/ssl_scache_/socache_/; add module structure and register_hooks.
  Add SHMCB_MAX_SIZE definition, replacing APR_SHM_MAXSIZE.

* modules/cache/mod_socache_memcache.c: Copied from
  ../ssl/ssl_scache_memcache.c.
  s/ssl_scache_/socache_/; add module structure and register_hooks.
  Enable for APR-Util 1.3.x at compile-time, omitting configure-time
  checks.

* modules/cache/mod_socache_dc.c: Copied from ../ssl/ssl_scache_dc.c.
  s/ssl_scache_/socache_/; add module structure and register_hooks.

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

apache@apache.org
ViewVC Help
Powered by ViewVC 1.1.2