Does Progress support any in-memory caching framework ?

kkumarc

New Member
Hello,

Does Progress support any in-memory caching framework?

ObjectStore also does not have Progress support. Frameworks like ObjectStore and MemCached have C++ and Java APIs which we can use from Progress by loading some shared library. But to me it does not look like a neat solution. It would have been great if Progress provides a native support for in-memory cache.

regards
krishna
 
It would have been great if Progress provides a native support for in-memory cache.

well, the 'in-memory cache' is something that normally gets added in between the language and the database while the 'embedded' nature of Progress 4GL (ABL) somehow lifts the need to have that cache layer in the middle as the database is most of the time already connected (run-time connections are not the norm here) and tuning the database server cold give one that 'in-memory' cache performance :)

however, there might be use-cases when such an 'in-memory cache' could come handy... if you don't like the external library then go for memcached protocol and plain socket connections from Progress... having set/get key functionality implemented wouldn't be very hard.
 
Marian,
"if you don't like the external library then go for memcached protocol and plain socket connections from Progress... "
Can you give some more explanation like a piece of code if you have? That would be very useful since the team here does not have much expertise in C/C++.

regards
krishna
 
Marian,

Can you give some more explanation like a piece of code if you have? That would be very useful since the team here does not have much expertise in C/C++.

regards
krishna

Sorry, no sample code available... the memcached protocol is not that complicated, you can use plain telnet to send commands to the memcached server so with a little bit of socket programming experience you can get that working.

You can start by looking-up socket, connect, write, read, set-read-response... in the Progress help, there are some examples of sending requests over sockets (http, smtp, there is also something in ganimede project that you might find useful as a starting point).

Good luck,
Marian
 
Back
Top