# Adding a method \`get\_like\` to PluginStore class

**URL:** <https://meta.discourse.org/t/adding-a-method-get-like-to-pluginstore-class/125026>\
**Category:** Development\
**Created:** [August 6, 2019, 6:12pm UTC](https://meta.discourse.org/t/adding-a-method-get-like-to-pluginstore-class/125026 "2019-08-06T18:12:26Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![fzngagan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fzngagan/32/259349_2.png) [@fzngagan](https://meta.discourse.org/u/fzngagan)\
**Post date:** [August 6, 2019, 6:12pm UTC](https://meta.discourse.org/t/adding-a-method-get-like-to-pluginstore-class/125026/1 "2019-08-06T18:12:26Z")

</div>

I want to submit a PR to add a method `get_like` to the PluginStore.

get\_like will fetch all the records for a given plugin, whose key starts with the same word.

**Usecase**  
If a plugin has two or more entities they want to store say apples and oranges, they’ll store the data as apple\_1, apple\_2.. and orange\_1, orange\_2 from a plugin names fruits.

To fetch all the `oranges`, one can simply call PluginStore.get\_like(‘fruits’, ‘orange’) etc.

What does the team and plugin devs think about this?

---

_[View the full topic](https://meta.discourse.org/t/adding-a-method-get-like-to-pluginstore-class/125026)._
