1. 13 Oct, 2016 1 commit
  2. 07 Oct, 2016 3 commits
  3. 06 Oct, 2016 2 commits
    • antirez's avatar
      Fix typos in GetContextFromIO API declaration. · a5998d1f
      antirez authored
      a5998d1f
    • antirez's avatar
      Module: Ability to get context from IO context. · 152c1b68
      antirez authored
      It was noted by @dvirsky that it is not possible to use string functions
      when writing the AOF file. This sometimes is critical since the command
      rewriting may need to be built in the context of the AOF callback, and
      without access to the context, and the limited types that the AOF
      production functions will accept, this can be an issue.
      
      Moreover there are other needs that we can't anticipate regarding the
      ability to use Redis Modules APIs using the context in order to build
      representations to emit AOF / RDB.
      
      Because of this a new API was added that allows the user to get a
      temporary context from the IO context. The context is auto released
      if obtained when the RDB / AOF callback returns.
      
      Calling multiple time the function to get the context, always returns
      the same one, since it is invalid to have more than a single context.
      152c1b68
  4. 02 Oct, 2016 2 commits
  5. 21 Sep, 2016 1 commit
  6. 03 Aug, 2016 1 commit
  7. 02 Aug, 2016 1 commit
    • antirez's avatar
      Modules: StringAppendBuffer() and ability to retain strings. · 7829e4ed
      antirez authored
      RedisModule_StringRetain() allows, when automatic memory management is
      on, to keep string objects living after the callback returns. Can also
      be used in order to use Redis reference counting of objects inside
      modules.
      
      The reason why this is useful is that sometimes when implementing new
      data types we want to reference RedisModuleString objects inside the
      module private data structures, so those string objects must be valid
      after the callback returns even if not referenced inside the Redis key
      space.
      7829e4ed
  8. 23 Jun, 2016 3 commits
  9. 22 Jun, 2016 2 commits
  10. 20 Jun, 2016 1 commit
  11. 07 Jun, 2016 1 commit
  12. 03 Jun, 2016 1 commit
  13. 14 May, 2016 1 commit
  14. 10 May, 2016 18 commits