Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ jobs:
# with apt
run: |
sudo apt -y install \
php-mbstring \
php-xml \
php-dev \
php${{ matrix.php-version }}-mbstring \
php${{ matrix.php-version }}-xml \
php${{ matrix.php-version }}-dev \
phpunit \
build-essential \
protobuf-compiler \
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

All notable changes to this project will be documented in this file.

## [1.4.0] - 2025-10-01

- **Fixes**
- [CLIENT-3777] Fix anomalous getTtl() behavior.

- **Improvements**
- [CLIENT-3777] Introduce getters on Expiration class objects.

## [1.3.0] - 2025-02-23

- **New Features**:
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "aerospike_php"
version = "1.3.0"
version = "1.4.0"
edition = "2021"
authors = ["Khosrow Afroozeh <khosrow@aerospike.com>", "Sachin Venkatesha Murthy <smurthy@aerospike.com>"]

Expand Down
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[![PHP version](https://img.shields.io/badge/php-%3E%3D%208.1-8892BF.svg)](https://github.com/aerospike/php-client)
# Aerospike PHP 8 Client (v1.3.0)
# Aerospike PHP 8 Client (v1.4.0)

An [Aerospike](https://www.aerospike.com/) client library for PHP 8

Expand Down Expand Up @@ -123,7 +123,7 @@ In case the installation script fails to build the `PHP-Client`, or if you just

$writePolicy->setRecordExistsAction(RecordExistsAction::Update);
$writePolicy->setGenerationPolicy(GenerationPolicy::ExpectGenEqual);
$writePolicy->setExpiration(Expiration::seconds(3600)); // Expiring in 1 hour
$writePolicy->setExpiration(Expiration::Seconds(3600)); // Expiring in 1 hour
$writePolicy->setMaxRetries(3);
$writePolicy->setSocketTimeout(5000);
```
Expand All @@ -145,11 +145,12 @@ If there are any bugs, feature requests or feedback -> please create an issue on
<?php
namespace Aerospike;

try{
try {
$socket = "/tmp/asld_grpc.sock";
$client = Client::connect($socket);
var_dump($client->socket);
}catch(AerospikeException $e){
}
catch(AerospikeException $e) {
var_dump($e);
}

Expand Down
10 changes: 6 additions & 4 deletions aerospike-connection-manager/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,14 @@ Aerospike's client policy allows for flexible control over read and write operat
cd php-client/aerospike-connection-manager
```

2. **Run Makefile**: Execute the default target of the Makefile to build & runthe aerospike-connection-manager:
2. **Configure the connection manager.** At a minimum, edit the `asld.toml` file to reflect your Aerospike server's current connection information.

3. **Run Makefile**: Use the `run` target to run the aerospike-connection-manager:
```shell
make
make run
```

3. **Verify Build**: Successful build output should resemble the following:
4. **Verify Build**: Successful build output should resemble the following:
```shell
rm -f asld
rm -f memprofile.out profile.out
Expand All @@ -55,7 +57,7 @@ Aerospike's client policy allows for flexible control over read and write operat
2024/02/13 10:41:30 grpc ran on unix socket protocol /tmp/asld_grpc.sock
```

4. **Install Service**: Once the build is verified, linux users who want to install the ACM as a service can execute this command:
5. **Install Service**: Once the build is verified, linux users who want to install the ACM as a service can execute this command:
```shell
sudo make daemonize
```
Expand Down
2 changes: 1 addition & 1 deletion aerospike-connection-manager/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.3.0
1.4.0
52 changes: 35 additions & 17 deletions docs/classes/Aerospike-AdminPolicy.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,29 +54,29 @@ <h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Doc
Menu
</label>
<aside class="phpdocumentor-column -three phpdocumentor-sidebar">
<section class="phpdocumentor-sidebar__category">
<section class="phpdocumentor-sidebar__category -namespaces">
<h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
<h4 class="phpdocumentor-sidebar__root-namespace">
<a href="namespaces/aerospike.html" class="">Aerospike</a>
</h4>

</section>
<section class="phpdocumentor-sidebar__category">
<section class="phpdocumentor-sidebar__category -packages">
<h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
<h4 class="phpdocumentor-sidebar__root-namespace">
<a href="packages/Application.html" class="">Application</a>
</h4>

</section>

<section class="phpdocumentor-sidebar__category">
<section class="phpdocumentor-sidebar__category -reports">
<h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
</section>

<section class="phpdocumentor-sidebar__category">
<section class="phpdocumentor-sidebar__category -indices">
<h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
<h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
</section>
Expand Down Expand Up @@ -122,6 +122,9 @@ <h2 class="phpdocumentor-content__title">






<h3 id="toc">
Table of Contents
<a href="classes/Aerospike-AdminPolicy.html#toc" class="headerlink"><i class="fas fa-link"></i></a>
Expand All @@ -143,7 +146,7 @@ <h4 id="toc-properties">
</h4>
<dl class="phpdocumentor-table-of-contents">
<dt class="phpdocumentor-table-of-contents__entry -property -public">
<a href="classes/Aerospike-AdminPolicy.html#property_timeout">$timeout</a>
<a class="" href="classes/Aerospike-AdminPolicy.html#property_timeout">$timeout</a>
<span>
&nbsp;: mixed </span>
</dt>
Expand All @@ -157,20 +160,20 @@ <h4 id="toc-methods">
</h4>
<dl class="phpdocumentor-table-of-contents">
<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Aerospike-AdminPolicy.html#method___construct">__construct()</a>
<a class="" href="classes/Aerospike-AdminPolicy.html#method___construct">__construct()</a>
<span>
&nbsp;: mixed </span>
</dt>

<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Aerospike-AdminPolicy.html#method_getTimeout">getTimeout()</a>
<a class="" href="classes/Aerospike-AdminPolicy.html#method_getTimeout">getTimeout()</a>
<span>
&nbsp;: int </span>
</dt>
<dd>User administration command socket timeout.</dd>

<dt class="phpdocumentor-table-of-contents__entry -method -public">
<a href="classes/Aerospike-AdminPolicy.html#method_setTimeout">setTimeout()</a>
<a class="" href="classes/Aerospike-AdminPolicy.html#method_setTimeout">setTimeout()</a>
<span>
&nbsp;: mixed </span>
</dt>
Expand All @@ -179,7 +182,6 @@ <h4 id="toc-methods">







Expand All @@ -194,14 +196,14 @@ <h3 class="phpdocumentor-elements__header" id="properties">
phpdocumentor-element
-property
-public
"
"
>
<h4 class="phpdocumentor-element__name" id="property_timeout">
$timeout
<a href="classes/Aerospike-AdminPolicy.html#property_timeout" class="headerlink"><i class="fas fa-link"></i></a>

<span class="phpdocumentor-element__modifiers">
</span>
</span>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="php_stubs/libaerospike-php-stubsv1.0.0.php"><a href="files/php-stubs-libaerospike-php-stubsv1-0-0.html"><abbr title="php_stubs/libaerospike-php-stubsv1.0.0.php">libaerospike-php-stubsv1.0.0.php</abbr></a></abbr>
Expand All @@ -211,16 +213,21 @@ <h4 class="phpdocumentor-element__name" id="property_timeout">
</aside>



<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__type">mixed</span>
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__type">mixed</span>
<span class="phpdocumentor-signature__name">$timeout</span>
</code>









</article>
</section>

Expand Down Expand Up @@ -258,6 +265,9 @@ <h4 class="phpdocumentor-element__name" id="method___construct">








</article>
Expand Down Expand Up @@ -287,12 +297,15 @@ <h4 class="phpdocumentor-element__name" id="method_getTimeout">

<div class="phpdocumentor-label-line">
</div>

<section class="phpdocumentor-description"><p>Default is 2 seconds.</p>
</section>






<section>
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">int</span>
Expand Down Expand Up @@ -325,6 +338,7 @@ <h4 class="phpdocumentor-element__name" id="method_setTimeout">
<div class="phpdocumentor-label-line">
</div>


<h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
<dt class="phpdocumentor-argument-list__entry">
Expand All @@ -339,6 +353,8 @@ <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>





</article>
</section>

Expand Down Expand Up @@ -378,6 +394,8 @@ <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
if (xhr.status < 400 && xhr.responseText) {
code.textContent = xhr.responseText;
Prism.highlightElement(code);
d=document.getElementsByClassName("line-numbers");
d[0].scrollTop = d[0].children[1].offsetTop;
return;
}

Expand Down Expand Up @@ -453,16 +471,16 @@ <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<li class="phpdocumentor-on-this-page-section__title">Properties</li>
<li>
<ul class="phpdocumentor-list -clean">
<li><a href="classes/Aerospike-AdminPolicy.html#property_timeout">$timeout<a href="classes/Aerospike-AdminPolicy.html"></li>
<li class=""><a href="classes/Aerospike-AdminPolicy.html#property_timeout">$timeout</a></li>
</ul>
</li>

<li class="phpdocumentor-on-this-page-section__title">Methods</li>
<li>
<ul class="phpdocumentor-list -clean">
<li><a href="classes/Aerospike-AdminPolicy.html#method___construct">__construct()</a></li>
<li><a href="classes/Aerospike-AdminPolicy.html#method_getTimeout">getTimeout()</a></li>
<li><a href="classes/Aerospike-AdminPolicy.html#method_setTimeout">setTimeout()</a></li>
<li class=""><a href="classes/Aerospike-AdminPolicy.html#method___construct">__construct()</a></li>
<li class=""><a href="classes/Aerospike-AdminPolicy.html#method_getTimeout">getTimeout()</a></li>
<li class=""><a href="classes/Aerospike-AdminPolicy.html#method_setTimeout">setTimeout()</a></li>
</ul>
</li>
</ul>
Expand Down
Loading
Loading