# How should we implement polls?

**URL:** <https://meta.discourse.org/t/how-should-we-implement-polls/11911>\
**Category:** Feature\
**Created:** [2014 年1 月 13 日 02:48 UTC](https://meta.discourse.org/t/how-should-we-implement-polls/11911 "2014-01-13T02:48:03Z")\
**Posts on this page:** 1\
**Showing post:** 30

<div class="post-metadata">

作者： ![radq](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/radq/32/104329_2.png) [@radq](https://meta.discourse.org/u/radq)\
发布日期： [2014 年1 月 30 日 15:45 UTC](https://meta.discourse.org/t/how-should-we-implement-polls/11911/30 "2014-01-30T15:45:39Z")

</div>

I’ve got this basically working, just need to improve the interface and clean things up a bit.

[![Imgur](https://global.discourse-cdn.com/meta/original/4X/d/9/0/d90cee7c54b69210457d8de812bd805447bdb4cd.png "imgur.com") ](https://imgur.com/wWz2uID)

@sam is there any way to do an atomic get-and-set on PluginStore rows, or maybe an interface to use Redis-backed locking?

Also when you say this:

> [@sam](#):
>
> Choices must be locked in after 5 minutes

Do you mean the user who created the poll shouldn’t be able to change the options after 5 minutes, or that after voting a user can’t change their vote after 5 minutes?

---

_[View the full topic](https://meta.discourse.org/t/how-should-we-implement-polls/11911)._
