Announcing a new module: mod_memcache Up until now one had two choices for storing arbitrary key/value pairs. hash or db. hash is fast, but it is local to the current FreeSWITCH instance. If you run multiple instances of FreeSWITCH then one could use db, an ODBC connection and a centralized database server (eg: postgresql). The choice was between fast but isolated or slow and distributed. memcached (http://www.danga.com/memcached/) is a high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load. Only now you can use it for dynamic phone applications. Check out the wiki page at: http://wiki.freeswitch.org/wiki/Mod_memcache Try this module out and file bug (jira) reports for problems / enhancement requests. -- -Rupa
Rupa, Thanks for adding to the project! Well done. -MC 2009/4/1 Rupa Schomaker <rupa@rupa.com>
Announcing a new module: mod_memcache
Up until now one had two choices for storing arbitrary key/value pairs. hash or db. hash is fast, but it is local to the current FreeSWITCH instance. If you run multiple instances of FreeSWITCH then one could use db, an ODBC connection and a centralized database server (eg: postgresql).
The choice was between fast but isolated or slow and distributed.
memcached (http://www.danga.com/memcached/) is a high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load. Only now you can use it for dynamic phone applications.
Check out the wiki page at: http://wiki.freeswitch.org/wiki/Mod_memcache
Try this module out and file bug (jira) reports for problems / enhancement requests.
-- -Rupa
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Thank you, You are brave to contribute something on April 1st =D I saw it go into tree everyone so it's real ;) 2009/4/1 Rupa Schomaker <rupa@rupa.com>
Announcing a new module: mod_memcache
Up until now one had two choices for storing arbitrary key/value pairs. hash or db. hash is fast, but it is local to the current FreeSWITCH instance. If you run multiple instances of FreeSWITCH then one could use db, an ODBC connection and a centralized database server (eg: postgresql).
The choice was between fast but isolated or slow and distributed.
memcached (http://www.danga.com/memcached/) is a high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load. Only now you can use it for dynamic phone applications.
Check out the wiki page at: http://wiki.freeswitch.org/wiki/Mod_memcache
Try this module out and file bug (jira) reports for problems / enhancement requests.
-- -Rupa
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
Congrats on the contribution Rupa. And thank you. Mesquita On Apr 1, 2009, at 6:31 PM, Rupa Schomaker wrote:
2009/4/1 Anthony Minessale <anthony.minessale@gmail.com> Thank you,
You are brave to contribute something on April 1st =D I saw it go into tree everyone so it's real ;)
haha! I didn't even think of that.
-- -Rupa _______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Rupa, This is a big contribution! Thanks! Can't wait to play with this. SDR
At the very least you didn't say "I can't wait to play with it!" :P On Apr 1, 2009, at 7:59 PM, Shelby Ramsey wrote:
Rupa,
This is a big contribution! Thanks! Can't wait to play with this.
SDR
Brian West brian@freeswitch.org -- Meet us a ClueCon! http://www.cluecon.com
Wow, this is cool. Fantastic work! I tried this immediately. This is also very useful to share data across applications. Here an example how to share data between Freeswitch and a ruby memcache-client: On Ruby/Rails I set the namespace e.g. to "freeswitch" for the same memcached server in environment.rb In Freeswitch I add the following line to the dialplan: <action application="set" data="ignore=${memcache(set freeswitch:test 'This is a test')}"/> <!-- Memcache test --> Take care to prefix your key (here "test") with the Ruby namespace "freeswitch:" Now you can receive the data in Ruby in raw mode:
CACHE.get("test",0) => 'This is a test"
The 0 as second parameter is important for the raw mode, otherwise ruby will try to marshall the result from memcached and fails. I added this info to the wiki. Best regards Peter Brian West schrieb:
At the very least you didn't say "I can't wait to play with it!" :P
On Apr 1, 2009, at 7:59 PM, Shelby Ramsey wrote:
Rupa,
This is a big contribution! Thanks! Can't wait to play with this.
SDR
Brian West brian@freeswitch.org <mailto:brian@freeswitch.org>
-- Meet us a ClueCon! http://www.cluecon.com <http://www.cluecon.com/>
------------------------------------------------------------------------
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
On Thu, Apr 2, 2009 at 8:08 AM, Peter P GMX <Prometheus001@gmx.net> wrote:
Wow, this is cool. Fantastic work! I tried this immediately. This is also very useful to share data across applications.
[snip]
I added this info to the wiki.
Best regards Peter
Thanks for the wiki update -- great to see examples of how to actually use it. :) -- -Rupa
participants (7)
-
Anthony Minessale
-
Brian West
-
João Mesquita
-
Michael Collins
-
Peter P GMX
-
Rupa Schomaker
-
Shelby Ramsey