Author: rfm
Date: Mon Apr 13 11:23:29 2015
New Revision: 38455

URL: http://svn.gna.org/viewcvs/gnustep?rev=38455&view=rev
Log:
add -cache method for client pool

Modified:
    libs/sqlclient/trunk/ChangeLog
    libs/sqlclient/trunk/SQLClient.h
    libs/sqlclient/trunk/SQLClientPool.m

Modified: libs/sqlclient/trunk/ChangeLog
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/sqlclient/trunk/ChangeLog?rev=38455&r1=38454&r2=38455&view=diff
==============================================================================
--- libs/sqlclient/trunk/ChangeLog      (original)
+++ libs/sqlclient/trunk/ChangeLog      Mon Apr 13 11:23:29 2015
@@ -1,5 +1,6 @@
 2015-04-13 Richard Frith-Macdonald  <[email protected]>
 
+       * SQLClient.h:
        * SQLClientPool.m:
        Make sure clients provided temporarily in convenience methods are
        swallowed by the pool again as soon as possible.  Also trap and
@@ -7,6 +8,7 @@
        the client being in use longer than necessary after an exception.
        Also, avoid taking clients from the pool in a few cases wehere we
        don't actually need to.
+       Add -cache method for SQLClientPool.
 
 2015-04-12 Richard Frith-Macdonald  <[email protected]>
 

Modified: libs/sqlclient/trunk/SQLClient.h
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/sqlclient/trunk/SQLClient.h?rev=38455&r1=38454&r2=38455&view=diff
==============================================================================
--- libs/sqlclient/trunk/SQLClient.h    (original)
+++ libs/sqlclient/trunk/SQLClient.h    Mon Apr 13 11:23:29 2015
@@ -1508,6 +1508,12 @@
 - (int) availableConnections;
 
 /**
+ * Returns the cache used by clients in the pool for storing the results of
+ * requests made through them.  Creates a new cache if necessary.
+ */
+- (GSCache*) cache;
+
+/**
  * Creates a pool of clients using a single client configuration.<br />
  * Calls -initWithConfiguration:name:pool: (passing NO to say the client
  * is not in a pool) to create each client.<br />

Modified: libs/sqlclient/trunk/SQLClientPool.m
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/sqlclient/trunk/SQLClientPool.m?rev=38455&r1=38454&r2=38455&view=diff
==============================================================================
--- libs/sqlclient/trunk/SQLClientPool.m        (original)
+++ libs/sqlclient/trunk/SQLClientPool.m        Mon Apr 13 11:23:29 2015
@@ -77,6 +77,11 @@
     }
   [self _unlock];
   return available;
+}
+
+- (GSCache*) cache
+{
+  return [q cache];
 }
 
 - (void) dealloc


_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs

Reply via email to