Memcache can work with 3 types of storage:

http://www.opensips.org/Resources/DocsTutMemcache

"A memory caching system can be via the local shared memory (see Local Cache 
module) or via the System V shared memory (mem cache shared across independent 
applications) or via the MemCache server."

You probably need localcache for the best perforamce.

--
Best Regards,
Alex Massover
VoIP R&D TL
Jajah Inc.
From: [email protected] 
[mailto:[email protected]] On Behalf Of Brett Nemeroff
Sent: Monday, October 05, 2009 2:18 PM
To: OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] Global Variables

Hey Alex,
I've just tried it with memcache and that works great.. Very fast.. just a 
little clumsy looking in the scripts; but otherwise works great.

Thanks,
Brett

On Mon, Oct 5, 2009 at 4:36 AM, Alex Massover 
<[email protected]<mailto:[email protected]>> wrote:

Hi!



Memcache with localcache (shared memory)?

As far as I understand you'll not run into race condition, because there're a 
locks at inside localcache hashtable. Also shared memory supposed to be very 
fast :)



--

Best Regards,

Alex Massover

VoIP R&D TL

Jajah Inc.

From: [email protected]<mailto:[email protected]> 
[mailto:[email protected]<mailto:[email protected]>]
 On Behalf Of Brett Nemeroff
Sent: Sunday, October 04, 2009 6:27 PM

To: [email protected]<mailto:[email protected]>
Subject: [OpenSIPS-Users] Global Variables



Hey all,

I'm wondering if there is a way to use global variables? I see that $var 
variables are persistent across the process, but I need something that will 
persist across all processes. Right now, I'm using memcache, but I'm not sure 
if I'll have race conditions relying on that as I expect many processes to be 
accessing and updating the globals for every call.



Thanks,

Brett



This mail was received via Mail-SeCure System.


This mail was sent via Mail-SeCure System.

_______________________________________________
Users mailing list
[email protected]<mailto:[email protected]>
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


This mail was received via Mail-SeCure System.

This mail was sent via Mail-SeCure System.


_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to