Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

oat-sa/lib-advkv-dynamodb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 

Repository files navigation

KvDynamoDb

Key Value Persistence implemtation for dynamoDB, requires Generis 2.7

Code used to generate table

$client->createTable(array(
  'AttributeDefinitions' => array(
    array(
      'AttributeName' => 'key',
      'AttributeType' => 'S'
    )
  ) ,
  'KeySchema' => array(
    array(
      'AttributeName' => 'key',
      'KeyType' => 'HASH'
    )
  ) ,
  'ProvisionedThroughput' => array(
    'ReadCapacityUnits' => 10,
    'WriteCapacityUnits' => 5
  ) ,
  'TableName' => "taoKeyValueStorage"
)); 

Persistence

'serviceState' => array(
    'driver' => 'oat\kvDynamoDb\DynamoDbDriver',
    'client' => array(
        'region' => 'eu-west-1',
        'scheme' => 'http'
    ),
    'table' => 'taoKeyValueStorage'
),