dustin

I write code.

Wants vs. Needs

  • jyfl987: hi, i am planning to implement an memcache server side application, can you guys told me where is the parsing part in projects memecached
  • dsal: What? Are you wanting to write an engine?
  • jyfl987: yes, my boss want to using memcache's protocol as our rpc protocol and i want to use inetd to wrote an simple and multi-thread implement for it
  • jyfl987: found it, its in memcache.c try_read_command
  • dsal: No, you want the storage engine framework. Trond wrote a tutorial on writing engines with it: http://blog.couchbase.com/writing-your-own-storage-engine-memcached
  • jyfl987: nope, i dont need the storage engine
  • dsal: If you think you need try_read_command, you need the storage engine interface.
  • jyfl987: i just want to learn how to parse the command :]
  • dsal: Why do you want to parse the command?
  • jyfl987: i am not a cs student, so missed some knowledge on parsing/compiling
  • dsal: This is definitely not the place to look, then.
  • jyfl987: anyway, i found what i need
  • dsal: I think you found what you were looking for. You've yet to find what you need.
  • jyfl987: yep,
Comments (View)
blog comments powered by Disqus