Commit Graph
31 Commits
Author SHA1 Message Date
pancake 179cf61680 getrusage is not available for wasi 2022-11-02 21:36:42 +01:00
pancake c10a1240e2 Indentation and coding style cleanups 2022-02-23 21:56:22 +01:00
fr33tux 78aa35e0f8 Fix sdb_hash arguments in excess & add tests for deletion ('~') 2014-05-07 15:09:24 +02:00
pancake 63fccb874a Bring back some bugs to make memcached work
Add memcache test.sh for regressions
2014-04-13 14:33:00 +02:00
pancake 00489956e4 Fix some issues reported by coverity 2014-04-01 00:21:22 +02:00
pancake b6438b9d1a Implement 'touch' memcache command 2013-04-22 11:39:24 +02:00
pancake 341a63955e Adopt patches 5 and 9 from Debian (Peter Pentchev) 2013-03-31 01:14:51 +01:00
pancake 87fbcbd9da Oops, Fix sdb_dec from sdb_query 2013-03-30 04:16:48 +01:00
pancake 0803b80e45 Reuse __unused, better make -s 2013-03-30 02:37:28 +01:00
pancake 699773771a sdb_delete -> sdb_remove 2012-09-13 02:40:27 +02:00
pancake 7031219d1f * fix clang-analyzer warnings in memchace protocol 2012-05-30 12:52:09 +02:00
pancake 27c824a951 * Fix various issues reported by clang-analyzer 2012-04-30 11:35:59 +02:00
pancake 49f5ff11e1 * Bump to 0.5
* Implement memcache udp set protocol
  - get is not yet supported.
  - supporting multiple datagrams per message
    will be a performance boost
* Add sdb_unow()
2012-04-03 02:20:56 +02:00
pancake 01a373c543 * Fix memcache build and initial work for CAS 2012-04-01 03:39:44 +02:00
pancake a7075e17a5 * More fixes in the socket reading code
- Remove all printf debugging messages
  - Still buggy, but faster and usable
2011-08-25 00:26:33 +02:00
pancake 56d675360e * Flush internal McSdbClient buffer in fds_del()
* Ignore case sensitive commands
* Use $(shell uname -m) in -arch darwin build
2011-08-24 23:00:02 +02:00
pancake 210048f865 * Fix compilation of vala/types
- Fixes some warnings in the vala bindings
* Bump sdb 0.3 and mcsdb 0.2 (merge versions?)
* Add test program using the sdb api from newLisp
  - Requires wip shared library compilation
* Initial support for multibyte read on mcsdb
  - Not yet working in all cases
  - Lot of debugging printfs O:)
2011-08-23 17:53:02 +02:00
pancake d94f3a2a16 * Implement sdb_flush() and mcsdb_flush()
- Sync sdb.vapi
  - Used by memcache flush_all command
2011-06-19 23:56:04 +02:00
pancake 01de04cf37 * Handle and ignore flush_all and verbosity commands 2011-06-14 10:09:52 +02:00
pancake 67a2974560 * Install memcache server, client, library and vapi
* Build libmcsdb.a
* Reuse of the McSdbClient struct for server and client
* Added memcache-client test program in Vala
  - Use --pkg mcsdb to use this api
* Fix license headers for memcache/

--HG--
rename : memcache/memcache.h => memcache/mcsdb.h
2011-06-13 23:06:59 +02:00
pancake 2d4491a0ec * Swap args for mcsdb_client_{set,add,prepend,append}
- Implement all those commands
* Fix sdb_delete and memcache_delete return values
* Various minor code cleanups
* Use strtoull instead of sscanf in INCR/DECR
2011-06-13 22:09:23 +02:00
pancake 0d22462e05 * Implement incr/decr commands in memcache frontend
- Mapped to memcache/client as in sdb with '+' and '-' prefixes
* Use strtoull and ulltoa (self made) instead of sprintf/scanf
  - This results in a 5x performance boost for each call
  - Which makes incr/decr about 8x faster
* Added sdb_nexists() to check if a key exists and is numeric
* Simplify some
2011-06-13 21:11:58 +02:00
pancake 4969254f79 * Use MCSDB_MAX_BUFFER everywhere
- Fix some long string issues
* Fix memory leak in client_free
2011-06-12 05:46:46 +02:00
pancake 2a037e211f * Implement memcache 'client' using sdb's like input
* Fix result of delete operation
* Fix sdb_exists()
2011-06-12 04:59:54 +02:00
pancake fe47cf7c13 * Fix build and poll() usage
- read byte by byte (slow)
* Fix null pointer in sdb_open
2011-06-12 03:14:31 +02:00
pancake a9e98132b6 * Lot of ugly work to make async reads work
- Many printf debugs out there
  - Still buggy under some circunstances
  - This code needs a cleanup!
* Benchmark result is a bit faster than memcached
  - But there are many things to improve and implement
2011-06-03 02:37:23 +02:00
pancake f8d0bf1854 * Rename memcache_ as mcsdb_ 2011-06-02 23:21:27 +02:00
pancake 1b8786bb92 * Initial working tcp/ascii protocol implementation
- All commands and stats, but CAS work as expected
  - Socket handling is done by poll and async nonblocking reads
  - Needs lot of testing
* Hash all commands to accelerate parsing
2011-06-02 21:19:32 +02:00
pancake e801178456 * Fix warnings and minor code cleanup 2011-06-02 10:36:21 +02:00
pancake e324a55de4 * Initial working version of memcache protocol over tcp
- commands with payload does not yet work
  - uses poll(2)
* Rename some memcache_ into mcsdb_
2011-06-02 02:06:38 +02:00
pancake dd69b9985f * Split memcache's main.c into protocol.c 2011-06-02 00:31:57 +02:00