<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Insert Method</title><link>https://sourceforge.net/p/perfcache/wiki/Insert%2520Method/</link><description>Recent changes to Insert Method</description><atom:link href="https://sourceforge.net/p/perfcache/wiki/Insert%20Method/feed" rel="self"/><language>en</language><lastBuildDate>Wed, 14 Dec 2011 20:20:23 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/perfcache/wiki/Insert%20Method/feed" rel="self" type="application/rss+xml"/><item><title>WikiPage Insert Method modified by Glenn Hofford</title><link>https://sourceforge.net/p/perfcache/wiki/Insert%2520Method/</link><description>&lt;pre&gt;--- v8 
+++ v9 
@@ -52,7 +52,10 @@
 
     // (note: in this case, the trailing NULL is inserted)
 
-    iResult = pCache-&gt;Insert ((const QBYTE *)"Alphabet", (QBYTE *) szVal, strlen(szVal)+1, 0);
+    int iResult = pCache-&gt;Insert ((const QBYTE *)"Alphabet", // key
+                                  (QBYTE *) szVal,           // pbData (the value)
+                                  strlen(szVal)+1,           // cbData
+                                  0);                        // TTL
 
     if (iResult != E_SUCCESS)
     {
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Glenn Hofford</dc:creator><pubDate>Wed, 14 Dec 2011 20:20:23 -0000</pubDate><guid>https://sourceforge.net56c4f2efec60949bbf393b00f72dd8446b40c7c1</guid></item><item><title>WikiPage Insert Method modified by Glenn Hofford</title><link>https://sourceforge.net/p/perfcache/wiki/Insert%2520Method/</link><description>&lt;pre&gt;--- v7 
+++ v8 
@@ -41,7 +41,7 @@
 &lt;br /&gt;
 ###### Remarks:######
 
-The Insert() method inserts a key and an associate value into the cache. If the cache is full, a replacement is performed; the type of replacement is dependent on the cache replacement policy.
+The Insert() method inserts a key and an associated value into the cache. If the cache is full, a replacement is performed; the type of replacement is dependent on the cache replacement policy.
 
 &lt;br /&gt;
 ###### Example ######
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Glenn Hofford</dc:creator><pubDate>Wed, 14 Dec 2011 03:21:42 -0000</pubDate><guid>https://sourceforge.neta9929841bbe8aea05b55728c24fa3bc313ad7df2</guid></item><item><title>WikiPage Insert Method modified by Glenn Hofford</title><link>https://sourceforge.net/p/perfcache/wiki/Insert%2520Method/</link><description>&lt;pre&gt;--- v6 
+++ v7 
@@ -2,8 +2,7 @@
 
 ###### Summary: ######
 
-Insert() copies cbData bytes from the buffer pointed to by pbData into a cache entry within
-the cache.
+Insert() copies cbData bytes from the buffer pointed to by pbData into a cache entry within the cache.
 
 &lt;br /&gt;
 ###### Syntax: ######
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Glenn Hofford</dc:creator><pubDate>Wed, 14 Dec 2011 03:20:52 -0000</pubDate><guid>https://sourceforge.netbcf35f188209b32c7329915b550802aa6530eeeb</guid></item><item><title>WikiPage Insert Method modified by Glenn Hofford</title><link>https://sourceforge.net/p/perfcache/wiki/Insert%2520Method/</link><description>&lt;pre&gt;--- v5 
+++ v6 
@@ -2,7 +2,8 @@
 
 ###### Summary: ######
 
-Insert() copies cbData bytes from the buffer pointed to by pbData into the cache.
+Insert() copies cbData bytes from the buffer pointed to by pbData into a cache entry within
+the cache.
 
 &lt;br /&gt;
 ###### Syntax: ######
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Glenn Hofford</dc:creator><pubDate>Wed, 14 Dec 2011 03:20:38 -0000</pubDate><guid>https://sourceforge.net47c01bffb89c3b1ce47ac4b34943fd64269cfc17</guid></item><item><title>WikiPage Insert Method modified by Glenn Hofford</title><link>https://sourceforge.net/p/perfcache/wiki/Insert%2520Method/</link><description>&lt;pre&gt;--- v4 
+++ v5 
@@ -12,21 +12,49 @@
                 const size_t cbData,
                 const unsigned int numSecondsTTL);
 
-&lt;br /&gt;
+    int Insert (const QWORD *wszKey,
+                const QBYTE *pbData,
+                const size_t cbData,
+                const unsigned int numSecondsTTL);
+
+&lt;br /&gt;
 ###### Parameters:######
 
-    1) szKey:
-
-    2) pbData:
-
-    3) cbData:
-
-    4) numSecondsTTL:
+    1) szKey or wszKey: the key
+
+    2) pbData: a pointer to a buffer of bytes that will be inserted into the cache.
+
+    3) cbData: a count of bytes of the data. This value does not necessarily need to include
+       space for a trailing NULL. Exactly cbData bytes of the buffer pointed to by pbData
+       will be stored in the cache.
+
+    4) numSecondsTTL: number of seconds for the "time-to-live" value.
 
 &lt;br /&gt;
 ###### Return values:######
 
       E_KEY_INVALIDKEYTYPE
       E_INVALID_KEYVALUE
       E_CACHE_DUPLICATE_KEY_FOUND_ENTRY_NOT_REPLACED
       E_SUCCESS
+
+&lt;br /&gt;
+###### Remarks:######
+
+The Insert() method inserts a key and an associate value into the cache. If the cache is full, a replacement is performed; the type of replacement is dependent on the cache replacement policy.
+
+&lt;br /&gt;
+###### Example ######
+
+    char szVal  [26 + 1];
+
+    strcpy (szVal, "ABCDEFGHIJKLMNOPQRSTUVWXYZ");
+
+    // (note: in this case, the trailing NULL is inserted)
+
+    iResult = pCache-&gt;Insert ((const QBYTE *)"Alphabet", (QBYTE *) szVal, strlen(szVal)+1, 0);
+
+    if (iResult != E_SUCCESS)
+    {
+        // error handling here
+    }
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Glenn Hofford</dc:creator><pubDate>Wed, 14 Dec 2011 03:19:49 -0000</pubDate><guid>https://sourceforge.net8eb19b9397e64480121097349c7cc01d9735eb37</guid></item><item><title>WikiPage Insert Method modified by Glenn Hofford</title><link>https://sourceforge.net/p/perfcache/wiki/Insert%2520Method/</link><description>&lt;pre&gt;--- v3 
+++ v4 
@@ -26,7 +26,7 @@
 &lt;br /&gt;
 ###### Return values:######
 
-    E_KEY_INVALIDKEYTYPE
-    E_INVALID_KEYVALUE
-    E_CACHE_DUPLICATE_KEY_FOUND_ENTRY_NOT_REPLACED
-    E_SUCCESS
+      E_KEY_INVALIDKEYTYPE
+      E_INVALID_KEYVALUE
+      E_CACHE_DUPLICATE_KEY_FOUND_ENTRY_NOT_REPLACED
+      E_SUCCESS
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Glenn Hofford</dc:creator><pubDate>Wed, 14 Dec 2011 01:58:36 -0000</pubDate><guid>https://sourceforge.net416235d6d767e66b45f8bde0baca6877e72b102a</guid></item><item><title>WikiPage Insert Method modified by Glenn Hofford</title><link>https://sourceforge.net/p/perfcache/wiki/Insert%2520Method/</link><description>&lt;pre&gt;--- v2 
+++ v3 
@@ -1,4 +1,4 @@
-##### Method: Insert #####
+##### Method: Cache::Insert #####
 
 ###### Summary: ######
 
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Glenn Hofford</dc:creator><pubDate>Wed, 14 Dec 2011 01:55:34 -0000</pubDate><guid>https://sourceforge.net245915d6366904be45607b6deb8fa78e30fa8ee3</guid></item><item><title>WikiPage Insert Method modified by Glenn Hofford</title><link>https://sourceforge.net/p/perfcache/wiki/Insert%2520Method/</link><description>&lt;pre&gt;--- v1 
+++ v2 
@@ -1,6 +1,32 @@
-    // Insert() copies cbData bytes from the buffer pointed to by pbData into the cache.
-    //
-    virtual int Insert (const QBYTE *szKey,
-                        const QBYTE *pbData,
-                        const size_t cbData,
-                        const unsigned int numSecondsTTL) = 0;
+##### Method: Insert #####
+
+###### Summary: ######
+
+Insert() copies cbData bytes from the buffer pointed to by pbData into the cache.
+
+&lt;br /&gt;
+###### Syntax: ######
+
+    int Insert (const QBYTE *szKey,
+                const QBYTE *pbData,
+                const size_t cbData,
+                const unsigned int numSecondsTTL);
+
+&lt;br /&gt;
+###### Parameters:######
+
+    1) szKey:
+
+    2) pbData:
+
+    3) cbData:
+
+    4) numSecondsTTL:
+
+&lt;br /&gt;
+###### Return values:######
+
+    E_KEY_INVALIDKEYTYPE
+    E_INVALID_KEYVALUE
+    E_CACHE_DUPLICATE_KEY_FOUND_ENTRY_NOT_REPLACED
+    E_SUCCESS
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Glenn Hofford</dc:creator><pubDate>Wed, 14 Dec 2011 01:54:08 -0000</pubDate><guid>https://sourceforge.net6b0d2ddb5ad587fc3b5108961af1b1c1818e1ad5</guid></item><item><title>WikiPage Insert Method modified by Glenn Hofford</title><link>https://sourceforge.net/p/perfcache/wiki/Insert%2520Method/</link><description>    // Insert() copies cbData bytes from the buffer pointed to by pbData into the cache.
    //
    virtual int Insert (const QBYTE *szKey,
                        const QBYTE *pbData,
                        const size_t cbData,
                        const unsigned int numSecondsTTL) = 0;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Glenn Hofford</dc:creator><pubDate>Wed, 14 Dec 2011 01:48:08 -0000</pubDate><guid>https://sourceforge.net837170863f0e47aa621f1da94330b0d07f6a8674</guid></item></channel></rss>