Add atomic increment, decrement, push, pop to options & transients api

  1. deardooley

    I've run into several situations recently where I need to keep running counters and lists for different site-specific properties. I was surprised to find there was no way to enable atomic increment, decrement, push, and pop operations on transients, options, and caching operations.

    This feature probably isn't the 80% use case, but a couple basic atomic counter and array operations would make life a lot easier as WP evolves to an API driven CMS and concurrency becomes noticeable to more people, it would be great to support this in the core API as it's low hanging fruit, maps well to most popular caching plugins, and provides a solution to a tricky problem that a lot of people can experience, but never really think about.

    Posted: 1 year ago #
  2. Ipstenu (Mika Epstein)
    Lead Plugin Wrangler

    Your suggestion is both very specific and very vague... Can you provide a real world, specific, example of what you're trying to do?

    Plugins can handle running counters and lists, but I don't know what you're trying to count/list here.

    Posted: 1 year ago #

RSS feed for this topic


You must log in to post.

  • Rating

    3 Votes
  • Status

    This idea is under consideration