ALL COVERED TOPICS

NoSQL Benchmarks NoSQL use cases NoSQL Videos NoSQL Hybrid Solutions NoSQL Presentations Big Data Hadoop MapReduce Pig Hive Flume Oozie Sqoop HDFS ZooKeeper Cascading Cascalog BigTable Cassandra HBase Hypertable Couchbase CouchDB MongoDB OrientDB RavenDB Jackrabbit Terrastore Amazon DynamoDB Redis Riak Project Voldemort Tokyo Cabinet Kyoto Cabinet memcached Amazon SimpleDB Datomic MemcacheDB M/DB GT.M Amazon Dynamo Dynomite Mnesia Yahoo! PNUTS/Sherpa Neo4j InfoGrid Sones GraphDB InfiniteGraph AllegroGraph MarkLogic Clustrix CouchDB Case Studies MongoDB Case Studies NoSQL at Adobe NoSQL at Facebook NoSQL at Twitter

NAVIGATE MAIN CATEGORIES

Close

scripting: All content tagged as scripting in NoSQL databases and polyglot persistence

An update on Redis and Lua

Salvatore Sanfilippo:

So the scripting feature will be limited to what you can do with vanilla Lua, and with the redis() command that lets you interact with Redis of course, and a few standard additions that will be registered by Redis in the Lua interpreter (so you know every Redis instance with scripting support contains this features by default), basically:

  • Bitops lua library, that is, bitwise operations. Not a part of vanilla Lua.
  • A Json library.
  • SHA1

As one commenter clarified Lua require, dofile, io.* and os.* will not be available to user’s scripts. While this makes Redis Lua scripts safer, using the single redis function and allowing loadstring makes me think injection attacks would still be possible.

Original title and link: An update on Redis and Lua (NoSQL databases © myNoSQL)

via: http://antirez.com/post/an-update-on-redis-and-lua.html