Did I find the right examples for you? yes no

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)
Sends a command to the server to atomically increment the value
for C{key} by C{delta}, or by 1 if C{delta} is unspecified.
Returns None if C{key} doesn't exist on server, otherwise it
returns the new value after incrementing.

Note that the value for C{key} must already exist in the memcache,
and it must be the string representation of an integer.

>>> mc.set("counter", "20")  # returns 1, indicating success
1(more...)

src/m/e/memcache-debug-panel-HEAD/test/__init__.py   memcache-debug-panel(Download)
        # incr
        incr = 'incr'
        self.assertFalse(client.incr(non_existent), 
                'simple incr, non-existent')
        self.assertLastCall('incr', non_existent, 'simple incr, non-existent')
        count = 0
        self.assertTrue(client.set(incr, count), 'set initial incr')
        self.assertLastCall('set', incr, 'set initial incr')
        count += 1
        self.assertEquals(client.incr(incr), count, 'simple incr')

src/c/a/Cache-Debug-Toolbar-HEAD/test/__init__.py   Cache-Debug-Toolbar(Download)
        # incr
        incr = 'incr'
        self.assertFalse(client.incr(non_existent), 
                'simple incr, non-existent')
        self.assertLastCall('incr', non_existent, 'simple incr, non-existent')
        count = 0
        self.assertTrue(client.set(incr, count), 'set initial incr')
        self.assertLastCall('set', incr, 'set initial incr')
        count += 1
        self.assertEquals(client.incr(incr), count, 'simple incr')