[API reference](https://evolu.dev/docs/api-reference) › [@evolu/common](https://evolu.dev/docs/api-reference/common) › RefCount

Reference counting helpers.

## Functions

| Function                                                                                     | Description                                                                                |
| -------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------ |
| [createRefCount](https://evolu.dev/docs/api-reference/common/RefCount/functions/createRefCount)           | Creates [RefCount](https://evolu.dev/docs/api-reference/common/RefCount/interfaces/RefCount).           |
| [createRefCountByKey](https://evolu.dev/docs/api-reference/common/RefCount/functions/createRefCountByKey) | Creates [RefCountByKey](https://evolu.dev/docs/api-reference/common/RefCount/interfaces/RefCountByKey). |

## Interfaces

| Interface                                                                                                   | Description                                                                                               |
| ----------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- |
| [CreateRefCountByKeyOptions](https://evolu.dev/docs/api-reference/common/RefCount/interfaces/CreateRefCountByKeyOptions) | Options for [createRefCountByKey](https://evolu.dev/docs/api-reference/common/RefCount/functions/createRefCountByKey). |
| [RefCount](https://evolu.dev/docs/api-reference/common/RefCount/interfaces/RefCount)                                     | Reference count for one retained value.                                                                   |
| [RefCountByKey](https://evolu.dev/docs/api-reference/common/RefCount/interfaces/RefCountByKey)                           | Reference counts keyed by logical identity.                                                               |