View previous topic :: View next topic |
Author |
Message |
rupa at rupa.com Guest
|
Posted: Wed Apr 01, 2009 4:19 pm Post subject: [Freeswitch-users] new module: mod_memcache |
|
|
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 |
|
Back to top |
|
|
msc at freeswitch.org Guest
|
Posted: Wed Apr 01, 2009 4:33 pm Post subject: [Freeswitch-users] new module: mod_memcache |
|
|
Rupa,
Thanks for adding to the project! Well done.
-MC
2009/4/1 Rupa Schomaker <rupa@rupa.com (rupa@rupa.com)>
|
|
Back to top |
|
|
anthony.minessale at g... Guest
|
Posted: Wed Apr 01, 2009 4:33 pm Post subject: [Freeswitch-users] new module: mod_memcache |
|
|
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 (rupa@rupa.com)>
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
AIM: anthm
MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400 |
|
Back to top |
|
|
rupa at rupa.com Guest
|
Posted: Wed Apr 01, 2009 4:38 pm Post subject: [Freeswitch-users] new module: mod_memcache |
|
|
2009/4/1 Anthony Minessale <anthony.minessale@gmail.com (anthony.minessale@gmail.com)>
Quote: | 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 |
|
Back to top |
|
|
jmesquita at gmail.com Guest
|
Posted: Wed Apr 01, 2009 4:47 pm Post subject: [Freeswitch-users] new module: mod_memcache |
|
|
Congrats on the contribution Rupa. And thank you.
Mesquita
On Apr 1, 2009, at 6:31 PM, Rupa Schomaker wrote:
|
|
Back to top |
|
|
sicfslist at gmail.com Guest
|
Posted: Wed Apr 01, 2009 8:07 pm Post subject: [Freeswitch-users] new module: mod_memcache |
|
|
Rupa,
This is a big contribution! Thanks! Can't wait to play with this.
SDR |
|
Back to top |
|
|
brian at freeswitch.org Guest
|
Posted: Wed Apr 01, 2009 8:13 pm Post subject: [Freeswitch-users] new module: mod_memcache |
|
|
At the very least you didn't say "I can't wait to play with it!"
On Apr 1, 2009, at 7:59 PM, Shelby Ramsey wrote:
Quote: | Rupa,
This is a big contribution! Thanks! Can't wait to play with this.
SDR |
Brian West
brian@freeswitch.org (brian@freeswitch.org)
-- Meet us a ClueCon! http://www.cluecon.com |
|
Back to top |
|
|
Prometheus001 at gmx.net Guest
|
Posted: Thu Apr 02, 2009 8:17 am Post subject: [Freeswitch-users] new module: mod_memcache |
|
|
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:
Quote: | Quote: | 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:
_______________________________________________
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 |
|
Back to top |
|
|
rupa at rupa.com Guest
|
Posted: Thu Apr 02, 2009 8:20 am Post subject: [Freeswitch-users] new module: mod_memcache |
|
|
On Thu, Apr 2, 2009 at 8:08 AM, Peter P GMX <Prometheus001@gmx.net (Prometheus001@gmx.net)> wrote:
Quote: | Wow, this is cool. Fantastic work!
I tried this immediately. This is also very useful to share data across
applications.
| [snip]
Quote: |
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 |
|
Back to top |
|
|
|