def list_values(self, local=True, limit=None, prefix=None, offset=0):
        """
        Return a list of all values stored in a dictionary which is local to this class.
        """
        key_prefix = self._get_full_key_prefix(local=local, prefix=prefix)

        if not key_prefix:
            return list(self._datastore_items.values())

        result = []
        for name, kvp in self._datastore_items.items():
            if name.startswith(key_prefix):
                result.append(kvp)

        return result

        Return a list of all values stored in a dictionary which is local to this class.
        
st2tests/st2tests/mocks/datastore.py